Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-compute] [Compute] Config compute readme.python #9353

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]",
"@autorest/[email protected]"
],
"commit": "3ac3598d0973e21837f5d9251dce47cd6553a482",
"commit": "201da3d2a70977bc4596653720ed4dea3ac50b1d",
"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/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --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/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/compute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""

DEFAULT_API_VERSION = '2021-11-01'
DEFAULT_API_VERSION = '2021-12-01'
_PROFILE_TAG = "azure.mgmt.compute.ComputeManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
None: DEFAULT_API_VERSION,
'availability_sets': '2021-11-01',
'capacity_reservation_groups': '2021-11-01',
'capacity_reservations': '2021-11-01',
'cloud_service_operating_systems': '2021-03-01',
'cloud_service_role_instances': '2021-03-01',
'cloud_service_roles': '2021-03-01',
Expand All @@ -68,21 +71,39 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'community_galleries': '2021-07-01',
'community_gallery_image_versions': '2021-07-01',
'community_gallery_images': '2021-07-01',
'disk_accesses': '2021-08-01',
'disk_encryption_sets': '2021-08-01',
'disk_restore_point': '2021-08-01',
'disks': '2021-08-01',
'dedicated_host_groups': '2021-11-01',
'dedicated_hosts': '2021-11-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',
'images': '2021-11-01',
'log_analytics': '2021-11-01',
'operations': '2021-11-01',
'proximity_placement_groups': '2021-11-01',
'resource_skus': '2021-07-01',
'restore_point_collections': '2021-11-01',
'restore_points': '2021-11-01',
'shared_galleries': '2021-07-01',
'shared_gallery_image_versions': '2021-07-01',
'shared_gallery_images': '2021-07-01',
'snapshots': '2021-08-01',
'ssh_public_keys': '2021-11-01',
'usage': '2021-11-01',
'virtual_machine_extension_images': '2021-11-01',
'virtual_machine_extensions': '2021-11-01',
'virtual_machine_images': '2021-11-01',
'virtual_machine_images_edge_zone': '2021-11-01',
'virtual_machine_run_commands': '2021-11-01',
'virtual_machine_scale_set_extensions': '2021-11-01',
'virtual_machine_scale_set_rolling_upgrades': '2021-11-01',
'virtual_machine_scale_set_vm_extensions': '2021-11-01',
'virtual_machine_scale_set_vm_run_commands': '2021-11-01',
'virtual_machine_scale_set_vms': '2021-11-01',
'virtual_machine_scale_sets': '2021-11-01',
'virtual_machine_sizes': '2021-11-01',
'virtual_machines': '2021-11-01',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -138,6 +159,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 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>`
* 2021-12-01: :mod:`v2021_12_01.models<azure.mgmt.compute.v2021_12_01.models>`
"""
if api_version == '2015-06-15':
from .v2015_06_15 import models
Expand Down Expand Up @@ -220,6 +242,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-11-01':
from .v2021_11_01 import models
return models
elif api_version == '2021-12-01':
from .v2021_12_01 import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -521,6 +546,7 @@ def disk_accesses(self):
* 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>`
* 2021-08-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2021_08_01.operations.DiskAccessesOperations>`
* 2021-12-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2021_12_01.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
Expand All @@ -535,6 +561,8 @@ def disk_accesses(self):
from .v2021_04_01.operations import DiskAccessesOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import DiskAccessesOperations as OperationClass
elif api_version == '2021-12-01':
from .v2021_12_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 @@ -551,6 +579,7 @@ def disk_encryption_sets(self):
* 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>`
* 2021-08-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2021_08_01.operations.DiskEncryptionSetsOperations>`
* 2021-12-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2021_12_01.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -569,6 +598,8 @@ def disk_encryption_sets(self):
from .v2021_04_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2021-12-01':
from .v2021_12_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 @@ -581,6 +612,7 @@ def disk_restore_point(self):
* 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>`
* 2021-08-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2021_08_01.operations.DiskRestorePointOperations>`
* 2021-12-01: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2021_12_01.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
Expand All @@ -591,6 +623,8 @@ def disk_restore_point(self):
from .v2021_04_01.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2021-12-01':
from .v2021_12_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 @@ -613,6 +647,7 @@ def disks(self):
* 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>`
* 2021-08-01: :class:`DisksOperations<azure.mgmt.compute.v2021_08_01.operations.DisksOperations>`
* 2021-12-01: :class:`DisksOperations<azure.mgmt.compute.v2021_12_01.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -643,6 +678,8 @@ def disks(self):
from .v2021_04_01.operations import DisksOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import DisksOperations as OperationClass
elif api_version == '2021-12-01':
from .v2021_12_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 @@ -1146,6 +1183,7 @@ def snapshots(self):
* 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>`
* 2021-08-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2021_08_01.operations.SnapshotsOperations>`
* 2021-12-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2021_12_01.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -1176,6 +1214,8 @@ def snapshots(self):
from .v2021_04_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2021-08-01':
from .v2021_08_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2021-12-01':
from .v2021_12_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