Skip to content

Commit

Permalink
code and test (Azure#23041)
Browse files Browse the repository at this point in the history
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
azclibot authored Feb 16, 2022
1 parent 57a9787 commit ef63f4c
Show file tree
Hide file tree
Showing 76 changed files with 40,042 additions and 43 deletions.
16 changes: 16 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 26.0.0 (2022-02-14)

**Features**

- Model Gallery has a new parameter sharing_status
- Model GalleryApplicationVersionPublishingProfile has a new parameter target_extended_locations
- Model GalleryArtifactPublishingProfileBase has a new parameter target_extended_locations
- Model GalleryImageVersionPublishingProfile has a new parameter target_extended_locations
- Model GalleryUpdate has a new parameter sharing_status
- Model OSDiskImageEncryption has a new parameter security_profile
- Model SharingProfile has a new parameter community_gallery_info

**Breaking changes**

- Operation GalleriesOperations.get has a new signature

## 25.0.0 (2022-01-28)

**Features**
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.12.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "1118376e6b4c59716f4a2bcf3ddea212aeee5536",
"commit": "3ac3598d0973e21837f5d9251dce47cd6553a482",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/compute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'disk_encryption_sets': '2021-08-01',
'disk_restore_point': '2021-08-01',
'disks': '2021-08-01',
'galleries': '2021-07-01',
'gallery_application_versions': '2021-07-01',
'gallery_applications': '2021-07-01',
'gallery_image_versions': '2021-07-01',
'gallery_images': '2021-07-01',
'gallery_sharing_profile': '2021-07-01',
'galleries': '2021-10-01',
'gallery_application_versions': '2021-10-01',
'gallery_applications': '2021-10-01',
'gallery_image_versions': '2021-10-01',
'gallery_images': '2021-10-01',
'gallery_sharing_profile': '2021-10-01',
'resource_skus': '2021-07-01',
'shared_galleries': '2021-07-01',
'shared_gallery_image_versions': '2021-07-01',
Expand Down Expand Up @@ -136,6 +136,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2021-04-01: :mod:`v2021_04_01.models<azure.mgmt.compute.v2021_04_01.models>`
* 2021-07-01: :mod:`v2021_07_01.models<azure.mgmt.compute.v2021_07_01.models>`
* 2021-08-01: :mod:`v2021_08_01.models<azure.mgmt.compute.v2021_08_01.models>`
* 2021-10-01: :mod:`v2021_10_01.models<azure.mgmt.compute.v2021_10_01.models>`
* 2021-11-01: :mod:`v2021_11_01.models<azure.mgmt.compute.v2021_11_01.models>`
"""
if api_version == '2015-06-15':
Expand Down Expand Up @@ -213,6 +214,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-08-01':
from .v2021_08_01 import models
return models
elif api_version == '2021-10-01':
from .v2021_10_01 import models
return models
elif api_version == '2021-11-01':
from .v2021_11_01 import models
return models
Expand Down Expand Up @@ -653,6 +657,7 @@ def galleries(self):
* 2019-12-01: :class:`GalleriesOperations<azure.mgmt.compute.v2019_12_01.operations.GalleriesOperations>`
* 2020-09-30: :class:`GalleriesOperations<azure.mgmt.compute.v2020_09_30.operations.GalleriesOperations>`
* 2021-07-01: :class:`GalleriesOperations<azure.mgmt.compute.v2021_07_01.operations.GalleriesOperations>`
* 2021-10-01: :class:`GalleriesOperations<azure.mgmt.compute.v2021_10_01.operations.GalleriesOperations>`
"""
api_version = self._get_api_version('galleries')
if api_version == '2018-06-01':
Expand All @@ -667,6 +672,8 @@ def galleries(self):
from .v2020_09_30.operations import GalleriesOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GalleriesOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GalleriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'galleries'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -680,6 +687,7 @@ def gallery_application_versions(self):
* 2019-12-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryApplicationVersionsOperations>`
* 2020-09-30: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryApplicationVersionsOperations>`
* 2021-07-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryApplicationVersionsOperations>`
* 2021-10-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryApplicationVersionsOperations>`
"""
api_version = self._get_api_version('gallery_application_versions')
if api_version == '2019-03-01':
Expand All @@ -692,6 +700,8 @@ def gallery_application_versions(self):
from .v2020_09_30.operations import GalleryApplicationVersionsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GalleryApplicationVersionsOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GalleryApplicationVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'gallery_application_versions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -705,6 +715,7 @@ def gallery_applications(self):
* 2019-12-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryApplicationsOperations>`
* 2020-09-30: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryApplicationsOperations>`
* 2021-07-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryApplicationsOperations>`
* 2021-10-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryApplicationsOperations>`
"""
api_version = self._get_api_version('gallery_applications')
if api_version == '2019-03-01':
Expand All @@ -717,6 +728,8 @@ def gallery_applications(self):
from .v2020_09_30.operations import GalleryApplicationsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GalleryApplicationsOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GalleryApplicationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'gallery_applications'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -731,6 +744,7 @@ def gallery_image_versions(self):
* 2019-12-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryImageVersionsOperations>`
* 2020-09-30: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryImageVersionsOperations>`
* 2021-07-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryImageVersionsOperations>`
* 2021-10-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryImageVersionsOperations>`
"""
api_version = self._get_api_version('gallery_image_versions')
if api_version == '2018-06-01':
Expand All @@ -745,6 +759,8 @@ def gallery_image_versions(self):
from .v2020_09_30.operations import GalleryImageVersionsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GalleryImageVersionsOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GalleryImageVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'gallery_image_versions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -759,6 +775,7 @@ def gallery_images(self):
* 2019-12-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryImagesOperations>`
* 2020-09-30: :class:`GalleryImagesOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryImagesOperations>`
* 2021-07-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryImagesOperations>`
* 2021-10-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryImagesOperations>`
"""
api_version = self._get_api_version('gallery_images')
if api_version == '2018-06-01':
Expand All @@ -773,6 +790,8 @@ def gallery_images(self):
from .v2020_09_30.operations import GalleryImagesOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GalleryImagesOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GalleryImagesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'gallery_images'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -783,12 +802,15 @@ def gallery_sharing_profile(self):
* 2020-09-30: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2020_09_30.operations.GallerySharingProfileOperations>`
* 2021-07-01: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2021_07_01.operations.GallerySharingProfileOperations>`
* 2021-10-01: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2021_10_01.operations.GallerySharingProfileOperations>`
"""
api_version = self._get_api_version('gallery_sharing_profile')
if api_version == '2020-09-30':
from .v2020_09_30.operations import GallerySharingProfileOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import GallerySharingProfileOperations as OperationClass
elif api_version == '2021-10-01':
from .v2021_10_01.operations import GallerySharingProfileOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'gallery_sharing_profile'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "25.0.0"
VERSION = "26.0.0"
Loading

0 comments on commit ef63f4c

Please sign in to comment.