Skip to content

Commit 9b54ea4

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-compute-2021-10-12-49115 (Azure#21218)
* CodeGen from PR 16349 in Azure/azure-rest-api-specs Update readme.md (Azure#16349) * version,CHANGELOG * test Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 1b85f03 commit 9b54ea4

File tree

77 files changed

+15528
-4840
lines changed

Some content is hidden

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

77 files changed

+15528
-4840
lines changed

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

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

3+
## 23.1.0 (2021-10-12)
4+
5+
**Features**
6+
7+
- Model PurchasePlanAutoGenerated has a new parameter promotion_code
8+
- Model Disk has a new parameter public_network_access
9+
- Model Disk has a new parameter completion_percent
10+
- Model Disk has a new parameter supported_capabilities
11+
- Model SnapshotUpdate has a new parameter public_network_access
12+
- Model Snapshot has a new parameter public_network_access
13+
- Model Snapshot has a new parameter completion_percent
14+
- Model Snapshot has a new parameter supported_capabilities
15+
- Model DiskRestorePoint has a new parameter network_access_policy
16+
- Model DiskRestorePoint has a new parameter disk_access_id
17+
- Model DiskRestorePoint has a new parameter public_network_access
18+
- Model DiskRestorePoint has a new parameter supported_capabilities
19+
- Model DiskRestorePoint has a new parameter completion_percent
20+
- Model DiskAccess has a new parameter extended_location
21+
- Model DiskEncryptionSet has a new parameter auto_key_rotation_error
22+
- Model DiskUpdate has a new parameter public_network_access
23+
- Model DiskUpdate has a new parameter supported_capabilities
24+
- Added operation group CommunityGalleryImageVersionsOperations
25+
- Added operation group CommunityGalleriesOperations
26+
- Added operation group CommunityGalleryImagesOperations
27+
328
## 23.0.0 (2021-09-02)
429

530
**Features**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "d5ad9431bbc19c34090d97209eb497167db32879",
7+
"commit": "3eaa729b3686f20817145e771a8ab707c739dbbd",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"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 --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/compute/resource-manager/readme.md"

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

Lines changed: 59 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
6666
'cloud_service_roles': '2021-03-01',
6767
'cloud_services': '2021-03-01',
6868
'cloud_services_update_domain': '2021-03-01',
69-
'disk_accesses': '2020-12-01',
70-
'disk_encryption_sets': '2020-12-01',
71-
'disk_restore_point': '2020-12-01',
72-
'disks': '2020-12-01',
73-
'snapshots': '2020-12-01',
69+
'disk_accesses': '2021-04-01',
70+
'disk_encryption_sets': '2021-04-01',
71+
'disk_restore_point': '2021-04-01',
72+
'disks': '2021-04-01',
73+
'snapshots': '2021-04-01',
7474
}},
7575
_PROFILE_TAG + " latest"
7676
)
@@ -367,6 +367,45 @@ def cloud_services_update_domain(self):
367367
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
368368
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
369369

370+
@property
371+
def community_galleries(self):
372+
"""Instance depends on the API version:
373+
374+
* 2021-07-01: :class:`CommunityGalleriesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleriesOperations>`
375+
"""
376+
api_version = self._get_api_version('community_galleries')
377+
if api_version == '2021-07-01':
378+
from .v2021_07_01.operations import CommunityGalleriesOperations as OperationClass
379+
else:
380+
raise ValueError("API version {} does not have operation group 'community_galleries'".format(api_version))
381+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
382+
383+
@property
384+
def community_gallery_image_versions(self):
385+
"""Instance depends on the API version:
386+
387+
* 2021-07-01: :class:`CommunityGalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImageVersionsOperations>`
388+
"""
389+
api_version = self._get_api_version('community_gallery_image_versions')
390+
if api_version == '2021-07-01':
391+
from .v2021_07_01.operations import CommunityGalleryImageVersionsOperations as OperationClass
392+
else:
393+
raise ValueError("API version {} does not have operation group 'community_gallery_image_versions'".format(api_version))
394+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
395+
396+
@property
397+
def community_gallery_images(self):
398+
"""Instance depends on the API version:
399+
400+
* 2021-07-01: :class:`CommunityGalleryImagesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImagesOperations>`
401+
"""
402+
api_version = self._get_api_version('community_gallery_images')
403+
if api_version == '2021-07-01':
404+
from .v2021_07_01.operations import CommunityGalleryImagesOperations as OperationClass
405+
else:
406+
raise ValueError("API version {} does not have operation group 'community_gallery_images'".format(api_version))
407+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
408+
370409
@property
371410
def dedicated_host_groups(self):
372411
"""Instance depends on the API version:
@@ -443,6 +482,7 @@ def disk_accesses(self):
443482
* 2020-06-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_06_30.operations.DiskAccessesOperations>`
444483
* 2020-09-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_09_30.operations.DiskAccessesOperations>`
445484
* 2020-12-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_12_01.operations.DiskAccessesOperations>`
485+
* 2021-04-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2021_04_01.operations.DiskAccessesOperations>`
446486
"""
447487
api_version = self._get_api_version('disk_accesses')
448488
if api_version == '2020-05-01':
@@ -453,6 +493,8 @@ def disk_accesses(self):
453493
from .v2020_09_30.operations import DiskAccessesOperations as OperationClass
454494
elif api_version == '2020-12-01':
455495
from .v2020_12_01.operations import DiskAccessesOperations as OperationClass
496+
elif api_version == '2021-04-01':
497+
from .v2021_04_01.operations import DiskAccessesOperations as OperationClass
456498
else:
457499
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
458500
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -467,6 +509,7 @@ def disk_encryption_sets(self):
467509
* 2020-06-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_06_30.operations.DiskEncryptionSetsOperations>`
468510
* 2020-09-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_09_30.operations.DiskEncryptionSetsOperations>`
469511
* 2020-12-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_12_01.operations.DiskEncryptionSetsOperations>`
512+
* 2021-04-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2021_04_01.operations.DiskEncryptionSetsOperations>`
470513
"""
471514
api_version = self._get_api_version('disk_encryption_sets')
472515
if api_version == '2019-07-01':
@@ -481,6 +524,8 @@ def disk_encryption_sets(self):
481524
from .v2020_09_30.operations import DiskEncryptionSetsOperations as OperationClass
482525
elif api_version == '2020-12-01':
483526
from .v2020_12_01.operations import DiskEncryptionSetsOperations as OperationClass
527+
elif api_version == '2021-04-01':
528+
from .v2021_04_01.operations import DiskEncryptionSetsOperations as OperationClass
484529
else:
485530
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
486531
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -491,12 +536,15 @@ def disk_restore_point(self):
491536
492537
* 2020-09-30: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_09_30.operations.DiskRestorePointOperations>`
493538
* 2020-12-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_12_01.operations.DiskRestorePointOperations>`
539+
* 2021-04-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2021_04_01.operations.DiskRestorePointOperations>`
494540
"""
495541
api_version = self._get_api_version('disk_restore_point')
496542
if api_version == '2020-09-30':
497543
from .v2020_09_30.operations import DiskRestorePointOperations as OperationClass
498544
elif api_version == '2020-12-01':
499545
from .v2020_12_01.operations import DiskRestorePointOperations as OperationClass
546+
elif api_version == '2021-04-01':
547+
from .v2021_04_01.operations import DiskRestorePointOperations as OperationClass
500548
else:
501549
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
502550
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -517,6 +565,7 @@ def disks(self):
517565
* 2020-06-30: :class:`DisksOperations<azure.mgmt.compute.v2020_06_30.operations.DisksOperations>`
518566
* 2020-09-30: :class:`DisksOperations<azure.mgmt.compute.v2020_09_30.operations.DisksOperations>`
519567
* 2020-12-01: :class:`DisksOperations<azure.mgmt.compute.v2020_12_01.operations.DisksOperations>`
568+
* 2021-04-01: :class:`DisksOperations<azure.mgmt.compute.v2021_04_01.operations.DisksOperations>`
520569
"""
521570
api_version = self._get_api_version('disks')
522571
if api_version == '2016-04-30-preview':
@@ -543,6 +592,8 @@ def disks(self):
543592
from .v2020_09_30.operations import DisksOperations as OperationClass
544593
elif api_version == '2020-12-01':
545594
from .v2020_12_01.operations import DisksOperations as OperationClass
595+
elif api_version == '2021-04-01':
596+
from .v2021_04_01.operations import DisksOperations as OperationClass
546597
else:
547598
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
548599
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -1008,6 +1059,7 @@ def snapshots(self):
10081059
* 2020-06-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_06_30.operations.SnapshotsOperations>`
10091060
* 2020-09-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_09_30.operations.SnapshotsOperations>`
10101061
* 2020-12-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_12_01.operations.SnapshotsOperations>`
1062+
* 2021-04-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2021_04_01.operations.SnapshotsOperations>`
10111063
"""
10121064
api_version = self._get_api_version('snapshots')
10131065
if api_version == '2016-04-30-preview':
@@ -1034,6 +1086,8 @@ def snapshots(self):
10341086
from .v2020_09_30.operations import SnapshotsOperations as OperationClass
10351087
elif api_version == '2020-12-01':
10361088
from .v2020_12_01.operations import SnapshotsOperations as OperationClass
1089+
elif api_version == '2021-04-01':
1090+
from .v2021_04_01.operations import SnapshotsOperations as OperationClass
10371091
else:
10381092
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
10391093
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 = "23.0.0"
8+
VERSION = "23.1.0"

0 commit comments

Comments
 (0)