Skip to content

Commit 967a1dd

Browse files
author
SDKAuto
committed
CodeGen from PR 32016 in Azure/azure-rest-api-specs
Merge ee15c1261cda03d84df5c27336a2af2649b49fef into 63105f9cb33e0da383e9069ef3632035ee804e01
1 parent 3fef975 commit 967a1dd

File tree

88 files changed

+12417
-157
lines changed

Some content is hidden

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

88 files changed

+12417
-157
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "416353cabfea1fc7a1c7c46ba3340408a2618de1",
2+
"commit": "bd796bcef2f6eb1541dab608e5b81770c164846d",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/[email protected].2",
6+
"@autorest/[email protected].4",
77
"@autorest/[email protected]"
88
],
9-
"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",
9+
"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",
1010
"readme": "specification/compute/resource-manager/readme.md",
1111
"package-2024-03-02-only": "2024-07-16 12:23:13 -0400 602fb5144a226577186e35845422c11db9067cf8 Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json",
1212
"package-2024-03-01-only": "2024-06-05 15:03:47 -0700 491e00d17f24909ecf5e1030b3833bed51224e92 Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json",

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

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
5656
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5757
"""
5858

59-
DEFAULT_API_VERSION = '2024-07-01'
59+
DEFAULT_API_VERSION = '2024-11-04'
6060
_PROFILE_TAG = "azure.mgmt.compute.ComputeManagementClient"
6161
LATEST_PROFILE = ProfileDefinition({
6262
_PROFILE_TAG: {
6363
None: DEFAULT_API_VERSION,
64-
'cloud_service_operating_systems': '2022-09-04',
65-
'cloud_service_role_instances': '2022-09-04',
66-
'cloud_service_roles': '2022-09-04',
67-
'cloud_services': '2022-09-04',
68-
'cloud_services_update_domain': '2022-09-04',
64+
'availability_sets': '2024-07-01',
65+
'capacity_reservation_groups': '2024-07-01',
66+
'capacity_reservations': '2024-07-01',
6967
'community_galleries': '2024-03-03',
7068
'community_gallery_image_versions': '2024-03-03',
7169
'community_gallery_images': '2024-03-03',
70+
'dedicated_host_groups': '2024-07-01',
71+
'dedicated_hosts': '2024-07-01',
7272
'disk_accesses': '2024-03-02',
7373
'disk_encryption_sets': '2024-03-02',
7474
'disk_restore_point': '2024-03-02',
@@ -81,12 +81,33 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
8181
'gallery_in_vm_access_control_profile_versions': '2024-03-03',
8282
'gallery_in_vm_access_control_profiles': '2024-03-03',
8383
'gallery_sharing_profile': '2024-03-03',
84+
'images': '2024-07-01',
85+
'log_analytics': '2024-07-01',
86+
'operations': '2024-07-01',
87+
'proximity_placement_groups': '2024-07-01',
8488
'resource_skus': '2021-07-01',
89+
'restore_point_collections': '2024-07-01',
90+
'restore_points': '2024-07-01',
8591
'shared_galleries': '2024-03-03',
8692
'shared_gallery_image_versions': '2024-03-03',
8793
'shared_gallery_images': '2024-03-03',
8894
'snapshots': '2024-03-02',
8995
'soft_deleted_resource': '2024-03-03',
96+
'ssh_public_keys': '2024-07-01',
97+
'usage': '2024-07-01',
98+
'virtual_machine_extension_images': '2024-07-01',
99+
'virtual_machine_extensions': '2024-07-01',
100+
'virtual_machine_images': '2024-07-01',
101+
'virtual_machine_images_edge_zone': '2024-07-01',
102+
'virtual_machine_run_commands': '2024-07-01',
103+
'virtual_machine_scale_set_extensions': '2024-07-01',
104+
'virtual_machine_scale_set_rolling_upgrades': '2024-07-01',
105+
'virtual_machine_scale_set_vm_extensions': '2024-07-01',
106+
'virtual_machine_scale_set_vm_run_commands': '2024-07-01',
107+
'virtual_machine_scale_set_vms': '2024-07-01',
108+
'virtual_machine_scale_sets': '2024-07-01',
109+
'virtual_machine_sizes': '2024-07-01',
110+
'virtual_machines': '2024-07-01',
90111
}},
91112
_PROFILE_TAG + " latest"
92113
)
@@ -121,7 +142,7 @@ def __init__(
121142
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
122143
self._config.http_logging_policy,
123144
]
124-
self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
145+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
125146
super(ComputeManagementClient, self).__init__(
126147
api_version=api_version,
127148
profile=profile
@@ -184,6 +205,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
184205
* 2024-03-02: :mod:`v2024_03_02.models<azure.mgmt.compute.v2024_03_02.models>`
185206
* 2024-03-03: :mod:`v2024_03_03.models<azure.mgmt.compute.v2024_03_03.models>`
186207
* 2024-07-01: :mod:`v2024_07_01.models<azure.mgmt.compute.v2024_07_01.models>`
208+
* 2024-11-04: :mod:`v2024_11_04.models<azure.mgmt.compute.v2024_11_04.models>`
187209
"""
188210
if api_version == '2015-06-15':
189211
from .v2015_06_15 import models
@@ -332,6 +354,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
332354
elif api_version == '2024-07-01':
333355
from .v2024_07_01 import models
334356
return models
357+
elif api_version == '2024-11-04':
358+
from .v2024_11_04 import models
359+
return models
335360
raise ValueError("API version {} is not available".format(api_version))
336361

337362
@property
@@ -515,6 +540,7 @@ def cloud_service_operating_systems(self):
515540
* 2021-03-01: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceOperatingSystemsOperations>`
516541
* 2022-04-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceOperatingSystemsOperations>`
517542
* 2022-09-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceOperatingSystemsOperations>`
543+
* 2024-11-04: :class:`CloudServiceOperatingSystemsOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceOperatingSystemsOperations>`
518544
"""
519545
api_version = self._get_api_version('cloud_service_operating_systems')
520546
if api_version == '2021-03-01':
@@ -523,6 +549,8 @@ def cloud_service_operating_systems(self):
523549
from .v2022_04_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
524550
elif api_version == '2022-09-04':
525551
from .v2022_09_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
552+
elif api_version == '2024-11-04':
553+
from .v2024_11_04.operations import CloudServiceOperatingSystemsOperations as OperationClass
526554
else:
527555
raise ValueError("API version {} does not have operation group 'cloud_service_operating_systems'".format(api_version))
528556
self._config.api_version = api_version
@@ -536,6 +564,7 @@ def cloud_service_role_instances(self):
536564
* 2021-03-01: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceRoleInstancesOperations>`
537565
* 2022-04-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceRoleInstancesOperations>`
538566
* 2022-09-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceRoleInstancesOperations>`
567+
* 2024-11-04: :class:`CloudServiceRoleInstancesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceRoleInstancesOperations>`
539568
"""
540569
api_version = self._get_api_version('cloud_service_role_instances')
541570
if api_version == '2020-10-01-preview':
@@ -546,6 +575,8 @@ def cloud_service_role_instances(self):
546575
from .v2022_04_04.operations import CloudServiceRoleInstancesOperations as OperationClass
547576
elif api_version == '2022-09-04':
548577
from .v2022_09_04.operations import CloudServiceRoleInstancesOperations as OperationClass
578+
elif api_version == '2024-11-04':
579+
from .v2024_11_04.operations import CloudServiceRoleInstancesOperations as OperationClass
549580
else:
550581
raise ValueError("API version {} does not have operation group 'cloud_service_role_instances'".format(api_version))
551582
self._config.api_version = api_version
@@ -559,6 +590,7 @@ def cloud_service_roles(self):
559590
* 2021-03-01: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServiceRolesOperations>`
560591
* 2022-04-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServiceRolesOperations>`
561592
* 2022-09-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServiceRolesOperations>`
593+
* 2024-11-04: :class:`CloudServiceRolesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServiceRolesOperations>`
562594
"""
563595
api_version = self._get_api_version('cloud_service_roles')
564596
if api_version == '2020-10-01-preview':
@@ -569,6 +601,8 @@ def cloud_service_roles(self):
569601
from .v2022_04_04.operations import CloudServiceRolesOperations as OperationClass
570602
elif api_version == '2022-09-04':
571603
from .v2022_09_04.operations import CloudServiceRolesOperations as OperationClass
604+
elif api_version == '2024-11-04':
605+
from .v2024_11_04.operations import CloudServiceRolesOperations as OperationClass
572606
else:
573607
raise ValueError("API version {} does not have operation group 'cloud_service_roles'".format(api_version))
574608
self._config.api_version = api_version
@@ -582,6 +616,7 @@ def cloud_services(self):
582616
* 2021-03-01: :class:`CloudServicesOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServicesOperations>`
583617
* 2022-04-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServicesOperations>`
584618
* 2022-09-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServicesOperations>`
619+
* 2024-11-04: :class:`CloudServicesOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServicesOperations>`
585620
"""
586621
api_version = self._get_api_version('cloud_services')
587622
if api_version == '2020-10-01-preview':
@@ -592,6 +627,8 @@ def cloud_services(self):
592627
from .v2022_04_04.operations import CloudServicesOperations as OperationClass
593628
elif api_version == '2022-09-04':
594629
from .v2022_09_04.operations import CloudServicesOperations as OperationClass
630+
elif api_version == '2024-11-04':
631+
from .v2024_11_04.operations import CloudServicesOperations as OperationClass
595632
else:
596633
raise ValueError("API version {} does not have operation group 'cloud_services'".format(api_version))
597634
self._config.api_version = api_version
@@ -605,6 +642,7 @@ def cloud_services_update_domain(self):
605642
* 2021-03-01: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2021_03_01.operations.CloudServicesUpdateDomainOperations>`
606643
* 2022-04-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2022_04_04.operations.CloudServicesUpdateDomainOperations>`
607644
* 2022-09-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2022_09_04.operations.CloudServicesUpdateDomainOperations>`
645+
* 2024-11-04: :class:`CloudServicesUpdateDomainOperations<azure.mgmt.compute.v2024_11_04.operations.CloudServicesUpdateDomainOperations>`
608646
"""
609647
api_version = self._get_api_version('cloud_services_update_domain')
610648
if api_version == '2020-10-01-preview':
@@ -615,6 +653,8 @@ def cloud_services_update_domain(self):
615653
from .v2022_04_04.operations import CloudServicesUpdateDomainOperations as OperationClass
616654
elif api_version == '2022-09-04':
617655
from .v2022_09_04.operations import CloudServicesUpdateDomainOperations as OperationClass
656+
elif api_version == '2024-11-04':
657+
from .v2024_11_04.operations import CloudServicesUpdateDomainOperations as OperationClass
618658
else:
619659
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
620660
self._config.api_version = api_version

0 commit comments

Comments
 (0)