Skip to content

Commit

Permalink
CodeGen from PR 16349 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Update readme.md (Azure#16349)
  • Loading branch information
SDKAuto committed Oct 12, 2021
1 parent 60ea3ec commit ca5e34b
Show file tree
Hide file tree
Showing 61 changed files with 13,564 additions and 150 deletions.
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/[email protected]",
"@autorest/[email protected]"
],
"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/[email protected] --use=@autorest/[email protected] --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
Loading

0 comments on commit ca5e34b

Please sign in to comment.