Skip to content
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
6 changes: 3 additions & 3 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"commit": "416353cabfea1fc7a1c7c46ba3340408a2618de1",
"commit": "bd796bcef2f6eb1541dab608e5b81770c164846d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected].2",
"@autorest/[email protected].4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].2 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/compute/resource-manager/readme.md",
"package-2024-03-02-only": "2024-07-16 12:23:13 -0400 602fb5144a226577186e35845422c11db9067cf8 Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json",
"package-2024-03-01-only": "2024-06-05 15:03:47 -0700 491e00d17f24909ecf5e1030b3833bed51224e92 Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ 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 = '2024-07-01'
DEFAULT_API_VERSION = '2024-11-04'
_PROFILE_TAG = "azure.mgmt.compute.ComputeManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
None: DEFAULT_API_VERSION,
'cloud_service_operating_systems': '2022-09-04',
'cloud_service_role_instances': '2022-09-04',
'cloud_service_roles': '2022-09-04',
'cloud_services': '2022-09-04',
'cloud_services_update_domain': '2022-09-04',
'availability_sets': '2024-07-01',
'capacity_reservation_groups': '2024-07-01',
'capacity_reservations': '2024-07-01',
'community_galleries': '2024-03-03',
'community_gallery_image_versions': '2024-03-03',
'community_gallery_images': '2024-03-03',
'dedicated_host_groups': '2024-07-01',
'dedicated_hosts': '2024-07-01',
'disk_accesses': '2024-03-02',
'disk_encryption_sets': '2024-03-02',
'disk_restore_point': '2024-03-02',
Expand All @@ -81,12 +81,33 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'gallery_in_vm_access_control_profile_versions': '2024-03-03',
'gallery_in_vm_access_control_profiles': '2024-03-03',
'gallery_sharing_profile': '2024-03-03',
'images': '2024-07-01',
'log_analytics': '2024-07-01',
'operations': '2024-07-01',
'proximity_placement_groups': '2024-07-01',
'resource_skus': '2021-07-01',
'restore_point_collections': '2024-07-01',
'restore_points': '2024-07-01',
'shared_galleries': '2024-03-03',
'shared_gallery_image_versions': '2024-03-03',
'shared_gallery_images': '2024-03-03',
'snapshots': '2024-03-02',
'soft_deleted_resource': '2024-03-03',
'ssh_public_keys': '2024-07-01',
'usage': '2024-07-01',
'virtual_machine_extension_images': '2024-07-01',
'virtual_machine_extensions': '2024-07-01',
'virtual_machine_images': '2024-07-01',
'virtual_machine_images_edge_zone': '2024-07-01',
'virtual_machine_run_commands': '2024-07-01',
'virtual_machine_scale_set_extensions': '2024-07-01',
'virtual_machine_scale_set_rolling_upgrades': '2024-07-01',
'virtual_machine_scale_set_vm_extensions': '2024-07-01',
'virtual_machine_scale_set_vm_run_commands': '2024-07-01',
'virtual_machine_scale_set_vms': '2024-07-01',
'virtual_machine_scale_sets': '2024-07-01',
'virtual_machine_sizes': '2024-07-01',
'virtual_machines': '2024-07-01',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -121,7 +142,7 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
super(ComputeManagementClient, self).__init__(
api_version=api_version,
profile=profile
Expand Down Expand Up @@ -184,6 +205,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2024-03-02: :mod:`v2024_03_02.models<azure.mgmt.compute.v2024_03_02.models>`
* 2024-03-03: :mod:`v2024_03_03.models<azure.mgmt.compute.v2024_03_03.models>`
* 2024-07-01: :mod:`v2024_07_01.models<azure.mgmt.compute.v2024_07_01.models>`
* 2024-11-04: :mod:`v2024_11_04.models<azure.mgmt.compute.v2024_11_04.models>`
"""
if api_version == '2015-06-15':
from .v2015_06_15 import models
Expand Down Expand Up @@ -332,6 +354,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2024-07-01':
from .v2024_07_01 import models
return models
elif api_version == '2024-11-04':
from .v2024_11_04 import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -515,6 +540,7 @@ def cloud_service_operating_systems(self):
* 2021-03-01: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceOperatingSystemsOperations>`
* 2022-04-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceOperatingSystemsOperations>`
* 2022-09-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceOperatingSystemsOperations>`
* 2024-11-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceOperatingSystemsOperations>`
"""
api_version = self._get_api_version('cloud_service_operating_systems')
if api_version == '2021-03-01':
Expand All @@ -523,6 +549,8 @@ def cloud_service_operating_systems(self):
from .v2022_04_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
elif api_version == '2022-09-04':
from .v2022_09_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
elif api_version == '2024-11-04':
from .v2024_11_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_operating_systems'".format(api_version))
self._config.api_version = api_version
Expand All @@ -536,6 +564,7 @@ def cloud_service_role_instances(self):
* 2021-03-01: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceRoleInstancesOperations>`
* 2022-04-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceRoleInstancesOperations>`
* 2022-09-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceRoleInstancesOperations>`
* 2024-11-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceRoleInstancesOperations>`
"""
api_version = self._get_api_version('cloud_service_role_instances')
if api_version == '2020-10-01-preview':
Expand All @@ -546,6 +575,8 @@ def cloud_service_role_instances(self):
from .v2022_04_04.operations import CloudServiceRoleInstancesOperations as OperationClass
elif api_version == '2022-09-04':
from .v2022_09_04.operations import CloudServiceRoleInstancesOperations as OperationClass
elif api_version == '2024-11-04':
from .v2024_11_04.operations import CloudServiceRoleInstancesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_role_instances'".format(api_version))
self._config.api_version = api_version
Expand All @@ -559,6 +590,7 @@ def cloud_service_roles(self):
* 2021-03-01: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceRolesOperations>`
* 2022-04-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceRolesOperations>`
* 2022-09-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceRolesOperations>`
* 2024-11-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceRolesOperations>`
"""
api_version = self._get_api_version('cloud_service_roles')
if api_version == '2020-10-01-preview':
Expand All @@ -569,6 +601,8 @@ def cloud_service_roles(self):
from .v2022_04_04.operations import CloudServiceRolesOperations as OperationClass
elif api_version == '2022-09-04':
from .v2022_09_04.operations import CloudServiceRolesOperations as OperationClass
elif api_version == '2024-11-04':
from .v2024_11_04.operations import CloudServiceRolesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_service_roles'".format(api_version))
self._config.api_version = api_version
Expand All @@ -582,6 +616,7 @@ def cloud_services(self):
* 2021-03-01: :class:`CloudServicesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServicesOperations>`
* 2022-04-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServicesOperations>`
* 2022-09-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServicesOperations>`
* 2024-11-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServicesOperations>`
"""
api_version = self._get_api_version('cloud_services')
if api_version == '2020-10-01-preview':
Expand All @@ -592,6 +627,8 @@ def cloud_services(self):
from .v2022_04_04.operations import CloudServicesOperations as OperationClass
elif api_version == '2022-09-04':
from .v2022_09_04.operations import CloudServicesOperations as OperationClass
elif api_version == '2024-11-04':
from .v2024_11_04.operations import CloudServicesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services'".format(api_version))
self._config.api_version = api_version
Expand All @@ -605,6 +642,7 @@ def cloud_services_update_domain(self):
* 2021-03-01: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServicesUpdateDomainOperations>`
* 2022-04-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServicesUpdateDomainOperations>`
* 2022-09-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServicesUpdateDomainOperations>`
* 2024-11-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServicesUpdateDomainOperations>`
"""
api_version = self._get_api_version('cloud_services_update_domain')
if api_version == '2020-10-01-preview':
Expand All @@ -615,6 +653,8 @@ def cloud_services_update_domain(self):
from .v2022_04_04.operations import CloudServicesUpdateDomainOperations as OperationClass
elif api_version == '2022-09-04':
from .v2022_09_04.operations import CloudServicesUpdateDomainOperations as OperationClass
elif api_version == '2024-11-04':
from .v2024_11_04.operations import CloudServicesUpdateDomainOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
self._config.api_version = api_version
Expand Down
Loading
Loading