Skip to content

Commit

Permalink
[AutoRelease] t2-compute-2021-10-12-49115 (#21218)
Browse files Browse the repository at this point in the history
* CodeGen from PR 16349 in Azure/azure-rest-api-specs
Update readme.md (#16349)

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
Azure CLI Bot and SDKAuto authored Oct 13, 2021
1 parent 1b85f03 commit 9b54ea4
Show file tree
Hide file tree
Showing 77 changed files with 15,528 additions and 4,840 deletions.
25 changes: 25 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Release History

## 23.1.0 (2021-10-12)

**Features**

- Model PurchasePlanAutoGenerated has a new parameter promotion_code
- Model Disk has a new parameter public_network_access
- Model Disk has a new parameter completion_percent
- Model Disk has a new parameter supported_capabilities
- Model SnapshotUpdate has a new parameter public_network_access
- Model Snapshot has a new parameter public_network_access
- Model Snapshot has a new parameter completion_percent
- Model Snapshot has a new parameter supported_capabilities
- Model DiskRestorePoint has a new parameter network_access_policy
- Model DiskRestorePoint has a new parameter disk_access_id
- Model DiskRestorePoint has a new parameter public_network_access
- Model DiskRestorePoint has a new parameter supported_capabilities
- Model DiskRestorePoint has a new parameter completion_percent
- Model DiskAccess has a new parameter extended_location
- Model DiskEncryptionSet has a new parameter auto_key_rotation_error
- Model DiskUpdate has a new parameter public_network_access
- Model DiskUpdate has a new parameter supported_capabilities
- Added operation group CommunityGalleryImageVersionsOperations
- Added operation group CommunityGalleriesOperations
- Added operation group CommunityGalleryImagesOperations

## 23.0.0 (2021-09-02)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "d5ad9431bbc19c34090d97209eb497167db32879",
"commit": "3eaa729b3686f20817145e771a8ab707c739dbbd",
"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 --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/compute/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'cloud_service_roles': '2021-03-01',
'cloud_services': '2021-03-01',
'cloud_services_update_domain': '2021-03-01',
'disk_accesses': '2020-12-01',
'disk_encryption_sets': '2020-12-01',
'disk_restore_point': '2020-12-01',
'disks': '2020-12-01',
'snapshots': '2020-12-01',
'disk_accesses': '2021-04-01',
'disk_encryption_sets': '2021-04-01',
'disk_restore_point': '2021-04-01',
'disks': '2021-04-01',
'snapshots': '2021-04-01',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -367,6 +367,45 @@ def cloud_services_update_domain(self):
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_galleries(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleriesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleriesOperations>`
"""
api_version = self._get_api_version('community_galleries')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_galleries'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_image_versions(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImageVersionsOperations>`
"""
api_version = self._get_api_version('community_gallery_image_versions')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleryImageVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_image_versions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_images(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImagesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImagesOperations>`
"""
api_version = self._get_api_version('community_gallery_images')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleryImagesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_images'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def dedicated_host_groups(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -443,6 +482,7 @@ def disk_accesses(self):
* 2020-06-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_06_30.operations.DiskAccessesOperations>`
* 2020-09-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_09_30.operations.DiskAccessesOperations>`
* 2020-12-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_12_01.operations.DiskAccessesOperations>`
* 2021-04-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2021_04_01.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
Expand All @@ -453,6 +493,8 @@ def disk_accesses(self):
from .v2020_09_30.operations import DiskAccessesOperations as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import DiskAccessesOperations as OperationClass
elif api_version == '2021-04-01':
from .v2021_04_01.operations import DiskAccessesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -467,6 +509,7 @@ def disk_encryption_sets(self):
* 2020-06-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_06_30.operations.DiskEncryptionSetsOperations>`
* 2020-09-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_09_30.operations.DiskEncryptionSetsOperations>`
* 2020-12-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_12_01.operations.DiskEncryptionSetsOperations>`
* 2021-04-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2021_04_01.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -481,6 +524,8 @@ def disk_encryption_sets(self):
from .v2020_09_30.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2021-04-01':
from .v2021_04_01.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -491,12 +536,15 @@ def disk_restore_point(self):
* 2020-09-30: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_09_30.operations.DiskRestorePointOperations>`
* 2020-12-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_12_01.operations.DiskRestorePointOperations>`
* 2021-04-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2021_04_01.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
from .v2020_09_30.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2021-04-01':
from .v2021_04_01.operations import DiskRestorePointOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -517,6 +565,7 @@ def disks(self):
* 2020-06-30: :class:`DisksOperations<azure.mgmt.compute.v2020_06_30.operations.DisksOperations>`
* 2020-09-30: :class:`DisksOperations<azure.mgmt.compute.v2020_09_30.operations.DisksOperations>`
* 2020-12-01: :class:`DisksOperations<azure.mgmt.compute.v2020_12_01.operations.DisksOperations>`
* 2021-04-01: :class:`DisksOperations<azure.mgmt.compute.v2021_04_01.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand All @@ -543,6 +592,8 @@ def disks(self):
from .v2020_09_30.operations import DisksOperations as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import DisksOperations as OperationClass
elif api_version == '2021-04-01':
from .v2021_04_01.operations import DisksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -1008,6 +1059,7 @@ def snapshots(self):
* 2020-06-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_06_30.operations.SnapshotsOperations>`
* 2020-09-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_09_30.operations.SnapshotsOperations>`
* 2020-12-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_12_01.operations.SnapshotsOperations>`
* 2021-04-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2021_04_01.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand All @@ -1034,6 +1086,8 @@ def snapshots(self):
from .v2020_09_30.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2021-04-01':
from .v2021_04_01.operations import SnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'snapshots'".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 = "23.0.0"
VERSION = "23.1.0"
Loading

0 comments on commit 9b54ea4

Please sign in to comment.