Skip to content

Commit ef63f4c

Browse files
authored
code and test (Azure#23041)
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 57a9787 commit ef63f4c

File tree

76 files changed

+40042
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+40042
-43
lines changed

sdk/compute/azure-mgmt-compute/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 26.0.0 (2022-02-14)
4+
5+
**Features**
6+
7+
- Model Gallery has a new parameter sharing_status
8+
- Model GalleryApplicationVersionPublishingProfile has a new parameter target_extended_locations
9+
- Model GalleryArtifactPublishingProfileBase has a new parameter target_extended_locations
10+
- Model GalleryImageVersionPublishingProfile has a new parameter target_extended_locations
11+
- Model GalleryUpdate has a new parameter sharing_status
12+
- Model OSDiskImageEncryption has a new parameter security_profile
13+
- Model SharingProfile has a new parameter community_gallery_info
14+
15+
**Breaking changes**
16+
17+
- Operation GalleriesOperations.get has a new signature
18+
319
## 25.0.0 (2022-01-28)
420

521
**Features**

sdk/compute/azure-mgmt-compute/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/python@5.12.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "1118376e6b4c59716f4a2bcf3ddea212aeee5536",
7+
"commit": "3ac3598d0973e21837f5d9251dce47cd6553a482",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"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",
9+
"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",
1010
"readme": "specification/compute/resource-manager/readme.md"
1111
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
7272
'disk_encryption_sets': '2021-08-01',
7373
'disk_restore_point': '2021-08-01',
7474
'disks': '2021-08-01',
75-
'galleries': '2021-07-01',
76-
'gallery_application_versions': '2021-07-01',
77-
'gallery_applications': '2021-07-01',
78-
'gallery_image_versions': '2021-07-01',
79-
'gallery_images': '2021-07-01',
80-
'gallery_sharing_profile': '2021-07-01',
75+
'galleries': '2021-10-01',
76+
'gallery_application_versions': '2021-10-01',
77+
'gallery_applications': '2021-10-01',
78+
'gallery_image_versions': '2021-10-01',
79+
'gallery_images': '2021-10-01',
80+
'gallery_sharing_profile': '2021-10-01',
8181
'resource_skus': '2021-07-01',
8282
'shared_galleries': '2021-07-01',
8383
'shared_gallery_image_versions': '2021-07-01',
@@ -136,6 +136,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
136136
* 2021-04-01: :mod:`v2021_04_01.models<azure.mgmt.compute.v2021_04_01.models>`
137137
* 2021-07-01: :mod:`v2021_07_01.models<azure.mgmt.compute.v2021_07_01.models>`
138138
* 2021-08-01: :mod:`v2021_08_01.models<azure.mgmt.compute.v2021_08_01.models>`
139+
* 2021-10-01: :mod:`v2021_10_01.models<azure.mgmt.compute.v2021_10_01.models>`
139140
* 2021-11-01: :mod:`v2021_11_01.models<azure.mgmt.compute.v2021_11_01.models>`
140141
"""
141142
if api_version == '2015-06-15':
@@ -213,6 +214,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
213214
elif api_version == '2021-08-01':
214215
from .v2021_08_01 import models
215216
return models
217+
elif api_version == '2021-10-01':
218+
from .v2021_10_01 import models
219+
return models
216220
elif api_version == '2021-11-01':
217221
from .v2021_11_01 import models
218222
return models
@@ -653,6 +657,7 @@ def galleries(self):
653657
* 2019-12-01: :class:`GalleriesOperations<azure.mgmt.compute.v2019_12_01.operations.GalleriesOperations>`
654658
* 2020-09-30: :class:`GalleriesOperations<azure.mgmt.compute.v2020_09_30.operations.GalleriesOperations>`
655659
* 2021-07-01: :class:`GalleriesOperations<azure.mgmt.compute.v2021_07_01.operations.GalleriesOperations>`
660+
* 2021-10-01: :class:`GalleriesOperations<azure.mgmt.compute.v2021_10_01.operations.GalleriesOperations>`
656661
"""
657662
api_version = self._get_api_version('galleries')
658663
if api_version == '2018-06-01':
@@ -667,6 +672,8 @@ def galleries(self):
667672
from .v2020_09_30.operations import GalleriesOperations as OperationClass
668673
elif api_version == '2021-07-01':
669674
from .v2021_07_01.operations import GalleriesOperations as OperationClass
675+
elif api_version == '2021-10-01':
676+
from .v2021_10_01.operations import GalleriesOperations as OperationClass
670677
else:
671678
raise ValueError("API version {} does not have operation group 'galleries'".format(api_version))
672679
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -680,6 +687,7 @@ def gallery_application_versions(self):
680687
* 2019-12-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryApplicationVersionsOperations>`
681688
* 2020-09-30: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryApplicationVersionsOperations>`
682689
* 2021-07-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryApplicationVersionsOperations>`
690+
* 2021-10-01: :class:`GalleryApplicationVersionsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryApplicationVersionsOperations>`
683691
"""
684692
api_version = self._get_api_version('gallery_application_versions')
685693
if api_version == '2019-03-01':
@@ -692,6 +700,8 @@ def gallery_application_versions(self):
692700
from .v2020_09_30.operations import GalleryApplicationVersionsOperations as OperationClass
693701
elif api_version == '2021-07-01':
694702
from .v2021_07_01.operations import GalleryApplicationVersionsOperations as OperationClass
703+
elif api_version == '2021-10-01':
704+
from .v2021_10_01.operations import GalleryApplicationVersionsOperations as OperationClass
695705
else:
696706
raise ValueError("API version {} does not have operation group 'gallery_application_versions'".format(api_version))
697707
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -705,6 +715,7 @@ def gallery_applications(self):
705715
* 2019-12-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryApplicationsOperations>`
706716
* 2020-09-30: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryApplicationsOperations>`
707717
* 2021-07-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryApplicationsOperations>`
718+
* 2021-10-01: :class:`GalleryApplicationsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryApplicationsOperations>`
708719
"""
709720
api_version = self._get_api_version('gallery_applications')
710721
if api_version == '2019-03-01':
@@ -717,6 +728,8 @@ def gallery_applications(self):
717728
from .v2020_09_30.operations import GalleryApplicationsOperations as OperationClass
718729
elif api_version == '2021-07-01':
719730
from .v2021_07_01.operations import GalleryApplicationsOperations as OperationClass
731+
elif api_version == '2021-10-01':
732+
from .v2021_10_01.operations import GalleryApplicationsOperations as OperationClass
720733
else:
721734
raise ValueError("API version {} does not have operation group 'gallery_applications'".format(api_version))
722735
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -731,6 +744,7 @@ def gallery_image_versions(self):
731744
* 2019-12-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryImageVersionsOperations>`
732745
* 2020-09-30: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryImageVersionsOperations>`
733746
* 2021-07-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryImageVersionsOperations>`
747+
* 2021-10-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryImageVersionsOperations>`
734748
"""
735749
api_version = self._get_api_version('gallery_image_versions')
736750
if api_version == '2018-06-01':
@@ -745,6 +759,8 @@ def gallery_image_versions(self):
745759
from .v2020_09_30.operations import GalleryImageVersionsOperations as OperationClass
746760
elif api_version == '2021-07-01':
747761
from .v2021_07_01.operations import GalleryImageVersionsOperations as OperationClass
762+
elif api_version == '2021-10-01':
763+
from .v2021_10_01.operations import GalleryImageVersionsOperations as OperationClass
748764
else:
749765
raise ValueError("API version {} does not have operation group 'gallery_image_versions'".format(api_version))
750766
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -759,6 +775,7 @@ def gallery_images(self):
759775
* 2019-12-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2019_12_01.operations.GalleryImagesOperations>`
760776
* 2020-09-30: :class:`GalleryImagesOperations<azure.mgmt.compute.v2020_09_30.operations.GalleryImagesOperations>`
761777
* 2021-07-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2021_07_01.operations.GalleryImagesOperations>`
778+
* 2021-10-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2021_10_01.operations.GalleryImagesOperations>`
762779
"""
763780
api_version = self._get_api_version('gallery_images')
764781
if api_version == '2018-06-01':
@@ -773,6 +790,8 @@ def gallery_images(self):
773790
from .v2020_09_30.operations import GalleryImagesOperations as OperationClass
774791
elif api_version == '2021-07-01':
775792
from .v2021_07_01.operations import GalleryImagesOperations as OperationClass
793+
elif api_version == '2021-10-01':
794+
from .v2021_10_01.operations import GalleryImagesOperations as OperationClass
776795
else:
777796
raise ValueError("API version {} does not have operation group 'gallery_images'".format(api_version))
778797
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -783,12 +802,15 @@ def gallery_sharing_profile(self):
783802
784803
* 2020-09-30: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2020_09_30.operations.GallerySharingProfileOperations>`
785804
* 2021-07-01: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2021_07_01.operations.GallerySharingProfileOperations>`
805+
* 2021-10-01: :class:`GallerySharingProfileOperations<azure.mgmt.compute.v2021_10_01.operations.GallerySharingProfileOperations>`
786806
"""
787807
api_version = self._get_api_version('gallery_sharing_profile')
788808
if api_version == '2020-09-30':
789809
from .v2020_09_30.operations import GallerySharingProfileOperations as OperationClass
790810
elif api_version == '2021-07-01':
791811
from .v2021_07_01.operations import GallerySharingProfileOperations as OperationClass
812+
elif api_version == '2021-10-01':
813+
from .v2021_10_01.operations import GallerySharingProfileOperations as OperationClass
792814
else:
793815
raise ValueError("API version {} does not have operation group 'gallery_sharing_profile'".format(api_version))
794816
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "25.0.0"
8+
VERSION = "26.0.0"

0 commit comments

Comments
 (0)