diff --git a/sdk/compute/azure-mgmt-compute/_meta.json b/sdk/compute/azure-mgmt-compute/_meta.json index 661176531ea0..e1093ae12a8b 100644 --- a/sdk/compute/azure-mgmt-compute/_meta.json +++ b/sdk/compute/azure-mgmt-compute/_meta.json @@ -1,12 +1,12 @@ { - "commit": "898ea5c3fac1ef8041ef6339ae00072058b06285", + "commit": "f94ff707736f442817d09bffb64c58e9fd5f4b86", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.27.4", "@autorest/modelerfour@4.27.0" ], - "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/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --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/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --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", diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py index 3088455fcb99..cfa78651fca7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py @@ -61,14 +61,14 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'availability_sets': '2024-07-01', - 'capacity_reservation_groups': '2024-07-01', - 'capacity_reservations': '2024-07-01', + 'availability_sets': '2024-11-01', + 'capacity_reservation_groups': '2024-11-01', + 'capacity_reservations': '2024-11-01', 'community_galleries': '2023-07-03', 'community_gallery_image_versions': '2023-07-03', 'community_gallery_images': '2023-07-03', - 'dedicated_host_groups': '2024-07-01', - 'dedicated_hosts': '2024-07-01', + 'dedicated_host_groups': '2024-11-01', + 'dedicated_hosts': '2024-11-01', 'disk_accesses': '2024-03-02', 'disk_encryption_sets': '2024-03-02', 'disk_restore_point': '2024-03-02', @@ -79,32 +79,32 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): 'gallery_image_versions': '2023-07-03', 'gallery_images': '2023-07-03', 'gallery_sharing_profile': '2023-07-03', - 'images': '2024-07-01', - 'log_analytics': '2024-07-01', - 'operations': '2024-07-01', - 'proximity_placement_groups': '2024-07-01', + 'images': '2024-11-01', + 'log_analytics': '2024-11-01', + 'operations': '2024-11-01', + 'proximity_placement_groups': '2024-11-01', 'resource_skus': '2021-07-01', - 'restore_point_collections': '2024-07-01', - 'restore_points': '2024-07-01', + 'restore_point_collections': '2024-11-01', + 'restore_points': '2024-11-01', 'shared_galleries': '2023-07-03', 'shared_gallery_image_versions': '2023-07-03', 'shared_gallery_images': '2023-07-03', 'snapshots': '2024-03-02', - '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', + 'ssh_public_keys': '2024-11-01', + 'usage': '2024-11-01', + 'virtual_machine_extension_images': '2024-11-01', + 'virtual_machine_extensions': '2024-11-01', + 'virtual_machine_images': '2024-11-01', + 'virtual_machine_images_edge_zone': '2024-11-01', + 'virtual_machine_run_commands': '2024-11-01', + 'virtual_machine_scale_set_extensions': '2024-11-01', + 'virtual_machine_scale_set_rolling_upgrades': '2024-11-01', + 'virtual_machine_scale_set_vm_extensions': '2024-11-01', + 'virtual_machine_scale_set_vm_run_commands': '2024-11-01', + 'virtual_machine_scale_set_vms': '2024-11-01', + 'virtual_machine_scale_sets': '2024-11-01', + 'virtual_machine_sizes': '2024-11-01', + 'virtual_machines': '2024-11-01', }}, _PROFILE_TAG + " latest" ) @@ -171,7 +171,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2023-07-03: :mod:`v2023_07_03.models` * 2023-10-02: :mod:`v2023_10_02.models` * 2024-03-02: :mod:`v2024_03_02.models` - * 2024-07-01: :mod:`v2024_07_01.models` + * 2024-11-01: :mod:`v2024_11_01.models` * 2024-11-04: :mod:`v2024_11_04.models` """ if api_version == '2016-03-30': @@ -228,8 +228,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2024-03-02': from .v2024_03_02 import models return models - elif api_version == '2024-07-01': - from .v2024_07_01 import models + elif api_version == '2024-11-01': + from .v2024_11_01 import models return models elif api_version == '2024-11-04': from .v2024_11_04 import models @@ -247,7 +247,7 @@ def availability_sets(self): * 2019-12-01: :class:`AvailabilitySetsOperations` * 2020-06-01: :class:`AvailabilitySetsOperations` * 2021-07-01: :class:`AvailabilitySetsOperations` - * 2024-07-01: :class:`AvailabilitySetsOperations` + * 2024-11-01: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') if api_version == '2016-03-30': @@ -264,8 +264,8 @@ def availability_sets(self): from .v2020_06_01.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import AvailabilitySetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version)) self._config.api_version = api_version @@ -276,13 +276,13 @@ def capacity_reservation_groups(self): """Instance depends on the API version: * 2021-07-01: :class:`CapacityReservationGroupsOperations` - * 2024-07-01: :class:`CapacityReservationGroupsOperations` + * 2024-11-01: :class:`CapacityReservationGroupsOperations` """ api_version = self._get_api_version('capacity_reservation_groups') if api_version == '2021-07-01': from .v2021_07_01.operations import CapacityReservationGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import CapacityReservationGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import CapacityReservationGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'capacity_reservation_groups'".format(api_version)) self._config.api_version = api_version @@ -293,13 +293,13 @@ def capacity_reservations(self): """Instance depends on the API version: * 2021-07-01: :class:`CapacityReservationsOperations` - * 2024-07-01: :class:`CapacityReservationsOperations` + * 2024-11-01: :class:`CapacityReservationsOperations` """ api_version = self._get_api_version('capacity_reservations') if api_version == '2021-07-01': from .v2021_07_01.operations import CapacityReservationsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import CapacityReservationsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import CapacityReservationsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'capacity_reservations'".format(api_version)) self._config.api_version = api_version @@ -458,7 +458,7 @@ def dedicated_host_groups(self): * 2019-12-01: :class:`DedicatedHostGroupsOperations` * 2020-06-01: :class:`DedicatedHostGroupsOperations` * 2021-07-01: :class:`DedicatedHostGroupsOperations` - * 2024-07-01: :class:`DedicatedHostGroupsOperations` + * 2024-11-01: :class:`DedicatedHostGroupsOperations` """ api_version = self._get_api_version('dedicated_host_groups') if api_version == '2019-07-01': @@ -469,8 +469,8 @@ def dedicated_host_groups(self): from .v2020_06_01.operations import DedicatedHostGroupsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import DedicatedHostGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import DedicatedHostGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import DedicatedHostGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_host_groups'".format(api_version)) self._config.api_version = api_version @@ -484,7 +484,7 @@ def dedicated_hosts(self): * 2019-12-01: :class:`DedicatedHostsOperations` * 2020-06-01: :class:`DedicatedHostsOperations` * 2021-07-01: :class:`DedicatedHostsOperations` - * 2024-07-01: :class:`DedicatedHostsOperations` + * 2024-11-01: :class:`DedicatedHostsOperations` """ api_version = self._get_api_version('dedicated_hosts') if api_version == '2019-07-01': @@ -495,8 +495,8 @@ def dedicated_hosts(self): from .v2020_06_01.operations import DedicatedHostsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import DedicatedHostsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import DedicatedHostsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import DedicatedHostsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_hosts'".format(api_version)) self._config.api_version = api_version @@ -790,7 +790,7 @@ def images(self): * 2019-12-01: :class:`ImagesOperations` * 2020-06-01: :class:`ImagesOperations` * 2021-07-01: :class:`ImagesOperations` - * 2024-07-01: :class:`ImagesOperations` + * 2024-11-01: :class:`ImagesOperations` """ api_version = self._get_api_version('images') if api_version == '2017-03-30': @@ -805,8 +805,8 @@ def images(self): from .v2020_06_01.operations import ImagesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import ImagesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import ImagesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import ImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'images'".format(api_version)) self._config.api_version = api_version @@ -821,7 +821,7 @@ def log_analytics(self): * 2019-12-01: :class:`LogAnalyticsOperations` * 2020-06-01: :class:`LogAnalyticsOperations` * 2021-07-01: :class:`LogAnalyticsOperations` - * 2024-07-01: :class:`LogAnalyticsOperations` + * 2024-11-01: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') if api_version == '2017-12-01': @@ -834,8 +834,8 @@ def log_analytics(self): from .v2020_06_01.operations import LogAnalyticsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import LogAnalyticsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import LogAnalyticsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'log_analytics'".format(api_version)) self._config.api_version = api_version @@ -850,7 +850,7 @@ def operations(self): * 2019-12-01: :class:`Operations` * 2020-06-01: :class:`Operations` * 2021-07-01: :class:`Operations` - * 2024-07-01: :class:`Operations` + * 2024-11-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-12-01': @@ -863,8 +863,8 @@ def operations(self): from .v2020_06_01.operations import Operations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import Operations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import Operations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version @@ -878,7 +878,7 @@ def proximity_placement_groups(self): * 2019-12-01: :class:`ProximityPlacementGroupsOperations` * 2020-06-01: :class:`ProximityPlacementGroupsOperations` * 2021-07-01: :class:`ProximityPlacementGroupsOperations` - * 2024-07-01: :class:`ProximityPlacementGroupsOperations` + * 2024-11-01: :class:`ProximityPlacementGroupsOperations` """ api_version = self._get_api_version('proximity_placement_groups') if api_version == '2019-07-01': @@ -889,8 +889,8 @@ def proximity_placement_groups(self): from .v2020_06_01.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import ProximityPlacementGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import ProximityPlacementGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'proximity_placement_groups'".format(api_version)) self._config.api_version = api_version @@ -924,13 +924,13 @@ def restore_point_collections(self): """Instance depends on the API version: * 2021-07-01: :class:`RestorePointCollectionsOperations` - * 2024-07-01: :class:`RestorePointCollectionsOperations` + * 2024-11-01: :class:`RestorePointCollectionsOperations` """ api_version = self._get_api_version('restore_point_collections') if api_version == '2021-07-01': from .v2021_07_01.operations import RestorePointCollectionsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import RestorePointCollectionsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import RestorePointCollectionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'restore_point_collections'".format(api_version)) self._config.api_version = api_version @@ -941,13 +941,13 @@ def restore_points(self): """Instance depends on the API version: * 2021-07-01: :class:`RestorePointsOperations` - * 2024-07-01: :class:`RestorePointsOperations` + * 2024-11-01: :class:`RestorePointsOperations` """ api_version = self._get_api_version('restore_points') if api_version == '2021-07-01': from .v2021_07_01.operations import RestorePointsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import RestorePointsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import RestorePointsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'restore_points'".format(api_version)) self._config.api_version = api_version @@ -1052,7 +1052,7 @@ def ssh_public_keys(self): * 2019-12-01: :class:`SshPublicKeysOperations` * 2020-06-01: :class:`SshPublicKeysOperations` * 2021-07-01: :class:`SshPublicKeysOperations` - * 2024-07-01: :class:`SshPublicKeysOperations` + * 2024-11-01: :class:`SshPublicKeysOperations` """ api_version = self._get_api_version('ssh_public_keys') if api_version == '2019-12-01': @@ -1061,8 +1061,8 @@ def ssh_public_keys(self): from .v2020_06_01.operations import SshPublicKeysOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import SshPublicKeysOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import SshPublicKeysOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import SshPublicKeysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'ssh_public_keys'".format(api_version)) self._config.api_version = api_version @@ -1079,7 +1079,7 @@ def usage(self): * 2019-12-01: :class:`UsageOperations` * 2020-06-01: :class:`UsageOperations` * 2021-07-01: :class:`UsageOperations` - * 2024-07-01: :class:`UsageOperations` + * 2024-11-01: :class:`UsageOperations` """ api_version = self._get_api_version('usage') if api_version == '2016-03-30': @@ -1096,8 +1096,8 @@ def usage(self): from .v2020_06_01.operations import UsageOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import UsageOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import UsageOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import UsageOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usage'".format(api_version)) self._config.api_version = api_version @@ -1114,7 +1114,7 @@ def virtual_machine_extension_images(self): * 2019-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-06-01: :class:`VirtualMachineExtensionImagesOperations` * 2021-07-01: :class:`VirtualMachineExtensionImagesOperations` - * 2024-07-01: :class:`VirtualMachineExtensionImagesOperations` + * 2024-11-01: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') if api_version == '2016-03-30': @@ -1131,8 +1131,8 @@ def virtual_machine_extension_images(self): from .v2020_06_01.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineExtensionImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extension_images'".format(api_version)) self._config.api_version = api_version @@ -1149,7 +1149,7 @@ def virtual_machine_extensions(self): * 2019-12-01: :class:`VirtualMachineExtensionsOperations` * 2020-06-01: :class:`VirtualMachineExtensionsOperations` * 2021-07-01: :class:`VirtualMachineExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') if api_version == '2016-03-30': @@ -1166,8 +1166,8 @@ def virtual_machine_extensions(self): from .v2020_06_01.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extensions'".format(api_version)) self._config.api_version = api_version @@ -1184,7 +1184,7 @@ def virtual_machine_images(self): * 2019-12-01: :class:`VirtualMachineImagesOperations` * 2020-06-01: :class:`VirtualMachineImagesOperations` * 2021-07-01: :class:`VirtualMachineImagesOperations` - * 2024-07-01: :class:`VirtualMachineImagesOperations` + * 2024-11-01: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') if api_version == '2016-03-30': @@ -1201,8 +1201,8 @@ def virtual_machine_images(self): from .v2020_06_01.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images'".format(api_version)) self._config.api_version = api_version @@ -1213,13 +1213,13 @@ def virtual_machine_images_edge_zone(self): """Instance depends on the API version: * 2021-07-01: :class:`VirtualMachineImagesEdgeZoneOperations` - * 2024-07-01: :class:`VirtualMachineImagesEdgeZoneOperations` + * 2024-11-01: :class:`VirtualMachineImagesEdgeZoneOperations` """ api_version = self._get_api_version('virtual_machine_images_edge_zone') if api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images_edge_zone'".format(api_version)) self._config.api_version = api_version @@ -1235,7 +1235,7 @@ def virtual_machine_run_commands(self): * 2019-12-01: :class:`VirtualMachineRunCommandsOperations` * 2020-06-01: :class:`VirtualMachineRunCommandsOperations` * 2021-07-01: :class:`VirtualMachineRunCommandsOperations` - * 2024-07-01: :class:`VirtualMachineRunCommandsOperations` + * 2024-11-01: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') if api_version == '2017-03-30': @@ -1250,8 +1250,8 @@ def virtual_machine_run_commands(self): from .v2020_06_01.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_run_commands'".format(api_version)) self._config.api_version = api_version @@ -1267,7 +1267,7 @@ def virtual_machine_scale_set_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') if api_version == '2017-03-30': @@ -1282,8 +1282,8 @@ def virtual_machine_scale_set_extensions(self): from .v2020_06_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_extensions'".format(api_version)) self._config.api_version = api_version @@ -1299,7 +1299,7 @@ def virtual_machine_scale_set_rolling_upgrades(self): * 2019-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-06-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2021-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') if api_version == '2017-03-30': @@ -1314,8 +1314,8 @@ def virtual_machine_scale_set_rolling_upgrades(self): from .v2020_06_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_rolling_upgrades'".format(api_version)) self._config.api_version = api_version @@ -1329,7 +1329,7 @@ def virtual_machine_scale_set_vm_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_extensions') if api_version == '2019-07-01': @@ -1340,8 +1340,8 @@ def virtual_machine_scale_set_vm_extensions(self): from .v2020_06_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vm_extensions'".format(api_version)) self._config.api_version = api_version @@ -1353,15 +1353,15 @@ def virtual_machine_scale_set_vm_run_commands(self): * 2020-06-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_run_commands') if api_version == '2020-06-01': from .v2020_06_01.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vm_run_commands'".format(api_version)) self._config.api_version = api_version @@ -1378,7 +1378,7 @@ def virtual_machine_scale_set_vms(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') if api_version == '2016-03-30': @@ -1395,8 +1395,8 @@ def virtual_machine_scale_set_vms(self): from .v2020_06_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vms'".format(api_version)) self._config.api_version = api_version @@ -1413,7 +1413,7 @@ def virtual_machine_scale_sets(self): * 2019-12-01: :class:`VirtualMachineScaleSetsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') if api_version == '2016-03-30': @@ -1430,8 +1430,8 @@ def virtual_machine_scale_sets(self): from .v2020_06_01.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineScaleSetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_sets'".format(api_version)) self._config.api_version = api_version @@ -1448,7 +1448,7 @@ def virtual_machine_sizes(self): * 2019-12-01: :class:`VirtualMachineSizesOperations` * 2020-06-01: :class:`VirtualMachineSizesOperations` * 2021-07-01: :class:`VirtualMachineSizesOperations` - * 2024-07-01: :class:`VirtualMachineSizesOperations` + * 2024-11-01: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') if api_version == '2016-03-30': @@ -1465,8 +1465,8 @@ def virtual_machine_sizes(self): from .v2020_06_01.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachineSizesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_sizes'".format(api_version)) self._config.api_version = api_version @@ -1483,7 +1483,7 @@ def virtual_machines(self): * 2019-12-01: :class:`VirtualMachinesOperations` * 2020-06-01: :class:`VirtualMachinesOperations` * 2021-07-01: :class:`VirtualMachinesOperations` - * 2024-07-01: :class:`VirtualMachinesOperations` + * 2024-11-01: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') if api_version == '2016-03-30': @@ -1500,8 +1500,8 @@ def virtual_machines(self): from .v2020_06_01.operations import VirtualMachinesOperations as OperationClass elif api_version == '2021-07-01': from .v2021_07_01.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2024-07-01': - from .v2024_07_01.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2024-11-01': + from .v2024_11_01.operations import VirtualMachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machines'".format(api_version)) self._config.api_version = api_version diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py index a4c99fa4e0d9..159a9da0468d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py @@ -61,14 +61,14 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'availability_sets': '2024-07-01', - 'capacity_reservation_groups': '2024-07-01', - 'capacity_reservations': '2024-07-01', + 'availability_sets': '2024-11-01', + 'capacity_reservation_groups': '2024-11-01', + 'capacity_reservations': '2024-11-01', 'community_galleries': '2023-07-03', 'community_gallery_image_versions': '2023-07-03', 'community_gallery_images': '2023-07-03', - 'dedicated_host_groups': '2024-07-01', - 'dedicated_hosts': '2024-07-01', + 'dedicated_host_groups': '2024-11-01', + 'dedicated_hosts': '2024-11-01', 'disk_accesses': '2024-03-02', 'disk_encryption_sets': '2024-03-02', 'disk_restore_point': '2024-03-02', @@ -79,32 +79,32 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): 'gallery_image_versions': '2023-07-03', 'gallery_images': '2023-07-03', 'gallery_sharing_profile': '2023-07-03', - 'images': '2024-07-01', - 'log_analytics': '2024-07-01', - 'operations': '2024-07-01', - 'proximity_placement_groups': '2024-07-01', + 'images': '2024-11-01', + 'log_analytics': '2024-11-01', + 'operations': '2024-11-01', + 'proximity_placement_groups': '2024-11-01', 'resource_skus': '2021-07-01', - 'restore_point_collections': '2024-07-01', - 'restore_points': '2024-07-01', + 'restore_point_collections': '2024-11-01', + 'restore_points': '2024-11-01', 'shared_galleries': '2023-07-03', 'shared_gallery_image_versions': '2023-07-03', 'shared_gallery_images': '2023-07-03', 'snapshots': '2024-03-02', - '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', + 'ssh_public_keys': '2024-11-01', + 'usage': '2024-11-01', + 'virtual_machine_extension_images': '2024-11-01', + 'virtual_machine_extensions': '2024-11-01', + 'virtual_machine_images': '2024-11-01', + 'virtual_machine_images_edge_zone': '2024-11-01', + 'virtual_machine_run_commands': '2024-11-01', + 'virtual_machine_scale_set_extensions': '2024-11-01', + 'virtual_machine_scale_set_rolling_upgrades': '2024-11-01', + 'virtual_machine_scale_set_vm_extensions': '2024-11-01', + 'virtual_machine_scale_set_vm_run_commands': '2024-11-01', + 'virtual_machine_scale_set_vms': '2024-11-01', + 'virtual_machine_scale_sets': '2024-11-01', + 'virtual_machine_sizes': '2024-11-01', + 'virtual_machines': '2024-11-01', }}, _PROFILE_TAG + " latest" ) @@ -171,7 +171,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2023-07-03: :mod:`v2023_07_03.models` * 2023-10-02: :mod:`v2023_10_02.models` * 2024-03-02: :mod:`v2024_03_02.models` - * 2024-07-01: :mod:`v2024_07_01.models` + * 2024-11-01: :mod:`v2024_11_01.models` * 2024-11-04: :mod:`v2024_11_04.models` """ if api_version == '2016-03-30': @@ -228,8 +228,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2024-03-02': from ..v2024_03_02 import models return models - elif api_version == '2024-07-01': - from ..v2024_07_01 import models + elif api_version == '2024-11-01': + from ..v2024_11_01 import models return models elif api_version == '2024-11-04': from ..v2024_11_04 import models @@ -247,7 +247,7 @@ def availability_sets(self): * 2019-12-01: :class:`AvailabilitySetsOperations` * 2020-06-01: :class:`AvailabilitySetsOperations` * 2021-07-01: :class:`AvailabilitySetsOperations` - * 2024-07-01: :class:`AvailabilitySetsOperations` + * 2024-11-01: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') if api_version == '2016-03-30': @@ -264,8 +264,8 @@ def availability_sets(self): from ..v2020_06_01.aio.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import AvailabilitySetsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import AvailabilitySetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version)) self._config.api_version = api_version @@ -276,13 +276,13 @@ def capacity_reservation_groups(self): """Instance depends on the API version: * 2021-07-01: :class:`CapacityReservationGroupsOperations` - * 2024-07-01: :class:`CapacityReservationGroupsOperations` + * 2024-11-01: :class:`CapacityReservationGroupsOperations` """ api_version = self._get_api_version('capacity_reservation_groups') if api_version == '2021-07-01': from ..v2021_07_01.aio.operations import CapacityReservationGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import CapacityReservationGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import CapacityReservationGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'capacity_reservation_groups'".format(api_version)) self._config.api_version = api_version @@ -293,13 +293,13 @@ def capacity_reservations(self): """Instance depends on the API version: * 2021-07-01: :class:`CapacityReservationsOperations` - * 2024-07-01: :class:`CapacityReservationsOperations` + * 2024-11-01: :class:`CapacityReservationsOperations` """ api_version = self._get_api_version('capacity_reservations') if api_version == '2021-07-01': from ..v2021_07_01.aio.operations import CapacityReservationsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import CapacityReservationsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import CapacityReservationsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'capacity_reservations'".format(api_version)) self._config.api_version = api_version @@ -458,7 +458,7 @@ def dedicated_host_groups(self): * 2019-12-01: :class:`DedicatedHostGroupsOperations` * 2020-06-01: :class:`DedicatedHostGroupsOperations` * 2021-07-01: :class:`DedicatedHostGroupsOperations` - * 2024-07-01: :class:`DedicatedHostGroupsOperations` + * 2024-11-01: :class:`DedicatedHostGroupsOperations` """ api_version = self._get_api_version('dedicated_host_groups') if api_version == '2019-07-01': @@ -469,8 +469,8 @@ def dedicated_host_groups(self): from ..v2020_06_01.aio.operations import DedicatedHostGroupsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import DedicatedHostGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import DedicatedHostGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import DedicatedHostGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_host_groups'".format(api_version)) self._config.api_version = api_version @@ -484,7 +484,7 @@ def dedicated_hosts(self): * 2019-12-01: :class:`DedicatedHostsOperations` * 2020-06-01: :class:`DedicatedHostsOperations` * 2021-07-01: :class:`DedicatedHostsOperations` - * 2024-07-01: :class:`DedicatedHostsOperations` + * 2024-11-01: :class:`DedicatedHostsOperations` """ api_version = self._get_api_version('dedicated_hosts') if api_version == '2019-07-01': @@ -495,8 +495,8 @@ def dedicated_hosts(self): from ..v2020_06_01.aio.operations import DedicatedHostsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import DedicatedHostsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import DedicatedHostsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import DedicatedHostsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_hosts'".format(api_version)) self._config.api_version = api_version @@ -790,7 +790,7 @@ def images(self): * 2019-12-01: :class:`ImagesOperations` * 2020-06-01: :class:`ImagesOperations` * 2021-07-01: :class:`ImagesOperations` - * 2024-07-01: :class:`ImagesOperations` + * 2024-11-01: :class:`ImagesOperations` """ api_version = self._get_api_version('images') if api_version == '2017-03-30': @@ -805,8 +805,8 @@ def images(self): from ..v2020_06_01.aio.operations import ImagesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import ImagesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import ImagesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import ImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'images'".format(api_version)) self._config.api_version = api_version @@ -821,7 +821,7 @@ def log_analytics(self): * 2019-12-01: :class:`LogAnalyticsOperations` * 2020-06-01: :class:`LogAnalyticsOperations` * 2021-07-01: :class:`LogAnalyticsOperations` - * 2024-07-01: :class:`LogAnalyticsOperations` + * 2024-11-01: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') if api_version == '2017-12-01': @@ -834,8 +834,8 @@ def log_analytics(self): from ..v2020_06_01.aio.operations import LogAnalyticsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import LogAnalyticsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import LogAnalyticsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'log_analytics'".format(api_version)) self._config.api_version = api_version @@ -850,7 +850,7 @@ def operations(self): * 2019-12-01: :class:`Operations` * 2020-06-01: :class:`Operations` * 2021-07-01: :class:`Operations` - * 2024-07-01: :class:`Operations` + * 2024-11-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-12-01': @@ -863,8 +863,8 @@ def operations(self): from ..v2020_06_01.aio.operations import Operations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import Operations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import Operations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version @@ -878,7 +878,7 @@ def proximity_placement_groups(self): * 2019-12-01: :class:`ProximityPlacementGroupsOperations` * 2020-06-01: :class:`ProximityPlacementGroupsOperations` * 2021-07-01: :class:`ProximityPlacementGroupsOperations` - * 2024-07-01: :class:`ProximityPlacementGroupsOperations` + * 2024-11-01: :class:`ProximityPlacementGroupsOperations` """ api_version = self._get_api_version('proximity_placement_groups') if api_version == '2019-07-01': @@ -889,8 +889,8 @@ def proximity_placement_groups(self): from ..v2020_06_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'proximity_placement_groups'".format(api_version)) self._config.api_version = api_version @@ -924,13 +924,13 @@ def restore_point_collections(self): """Instance depends on the API version: * 2021-07-01: :class:`RestorePointCollectionsOperations` - * 2024-07-01: :class:`RestorePointCollectionsOperations` + * 2024-11-01: :class:`RestorePointCollectionsOperations` """ api_version = self._get_api_version('restore_point_collections') if api_version == '2021-07-01': from ..v2021_07_01.aio.operations import RestorePointCollectionsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import RestorePointCollectionsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import RestorePointCollectionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'restore_point_collections'".format(api_version)) self._config.api_version = api_version @@ -941,13 +941,13 @@ def restore_points(self): """Instance depends on the API version: * 2021-07-01: :class:`RestorePointsOperations` - * 2024-07-01: :class:`RestorePointsOperations` + * 2024-11-01: :class:`RestorePointsOperations` """ api_version = self._get_api_version('restore_points') if api_version == '2021-07-01': from ..v2021_07_01.aio.operations import RestorePointsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import RestorePointsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import RestorePointsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'restore_points'".format(api_version)) self._config.api_version = api_version @@ -1052,7 +1052,7 @@ def ssh_public_keys(self): * 2019-12-01: :class:`SshPublicKeysOperations` * 2020-06-01: :class:`SshPublicKeysOperations` * 2021-07-01: :class:`SshPublicKeysOperations` - * 2024-07-01: :class:`SshPublicKeysOperations` + * 2024-11-01: :class:`SshPublicKeysOperations` """ api_version = self._get_api_version('ssh_public_keys') if api_version == '2019-12-01': @@ -1061,8 +1061,8 @@ def ssh_public_keys(self): from ..v2020_06_01.aio.operations import SshPublicKeysOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import SshPublicKeysOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import SshPublicKeysOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import SshPublicKeysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'ssh_public_keys'".format(api_version)) self._config.api_version = api_version @@ -1079,7 +1079,7 @@ def usage(self): * 2019-12-01: :class:`UsageOperations` * 2020-06-01: :class:`UsageOperations` * 2021-07-01: :class:`UsageOperations` - * 2024-07-01: :class:`UsageOperations` + * 2024-11-01: :class:`UsageOperations` """ api_version = self._get_api_version('usage') if api_version == '2016-03-30': @@ -1096,8 +1096,8 @@ def usage(self): from ..v2020_06_01.aio.operations import UsageOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import UsageOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import UsageOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import UsageOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usage'".format(api_version)) self._config.api_version = api_version @@ -1114,7 +1114,7 @@ def virtual_machine_extension_images(self): * 2019-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-06-01: :class:`VirtualMachineExtensionImagesOperations` * 2021-07-01: :class:`VirtualMachineExtensionImagesOperations` - * 2024-07-01: :class:`VirtualMachineExtensionImagesOperations` + * 2024-11-01: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') if api_version == '2016-03-30': @@ -1131,8 +1131,8 @@ def virtual_machine_extension_images(self): from ..v2020_06_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extension_images'".format(api_version)) self._config.api_version = api_version @@ -1149,7 +1149,7 @@ def virtual_machine_extensions(self): * 2019-12-01: :class:`VirtualMachineExtensionsOperations` * 2020-06-01: :class:`VirtualMachineExtensionsOperations` * 2021-07-01: :class:`VirtualMachineExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') if api_version == '2016-03-30': @@ -1166,8 +1166,8 @@ def virtual_machine_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extensions'".format(api_version)) self._config.api_version = api_version @@ -1184,7 +1184,7 @@ def virtual_machine_images(self): * 2019-12-01: :class:`VirtualMachineImagesOperations` * 2020-06-01: :class:`VirtualMachineImagesOperations` * 2021-07-01: :class:`VirtualMachineImagesOperations` - * 2024-07-01: :class:`VirtualMachineImagesOperations` + * 2024-11-01: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') if api_version == '2016-03-30': @@ -1201,8 +1201,8 @@ def virtual_machine_images(self): from ..v2020_06_01.aio.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineImagesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images'".format(api_version)) self._config.api_version = api_version @@ -1213,13 +1213,13 @@ def virtual_machine_images_edge_zone(self): """Instance depends on the API version: * 2021-07-01: :class:`VirtualMachineImagesEdgeZoneOperations` - * 2024-07-01: :class:`VirtualMachineImagesEdgeZoneOperations` + * 2024-11-01: :class:`VirtualMachineImagesEdgeZoneOperations` """ api_version = self._get_api_version('virtual_machine_images_edge_zone') if api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images_edge_zone'".format(api_version)) self._config.api_version = api_version @@ -1235,7 +1235,7 @@ def virtual_machine_run_commands(self): * 2019-12-01: :class:`VirtualMachineRunCommandsOperations` * 2020-06-01: :class:`VirtualMachineRunCommandsOperations` * 2021-07-01: :class:`VirtualMachineRunCommandsOperations` - * 2024-07-01: :class:`VirtualMachineRunCommandsOperations` + * 2024-11-01: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') if api_version == '2017-03-30': @@ -1250,8 +1250,8 @@ def virtual_machine_run_commands(self): from ..v2020_06_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_run_commands'".format(api_version)) self._config.api_version = api_version @@ -1267,7 +1267,7 @@ def virtual_machine_scale_set_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') if api_version == '2017-03-30': @@ -1282,8 +1282,8 @@ def virtual_machine_scale_set_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_extensions'".format(api_version)) self._config.api_version = api_version @@ -1299,7 +1299,7 @@ def virtual_machine_scale_set_rolling_upgrades(self): * 2019-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-06-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2021-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') if api_version == '2017-03-30': @@ -1314,8 +1314,8 @@ def virtual_machine_scale_set_rolling_upgrades(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_rolling_upgrades'".format(api_version)) self._config.api_version = api_version @@ -1329,7 +1329,7 @@ def virtual_machine_scale_set_vm_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_extensions') if api_version == '2019-07-01': @@ -1340,8 +1340,8 @@ def virtual_machine_scale_set_vm_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vm_extensions'".format(api_version)) self._config.api_version = api_version @@ -1353,15 +1353,15 @@ def virtual_machine_scale_set_vm_run_commands(self): * 2020-06-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_run_commands') if api_version == '2020-06-01': from ..v2020_06_01.aio.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vm_run_commands'".format(api_version)) self._config.api_version = api_version @@ -1378,7 +1378,7 @@ def virtual_machine_scale_set_vms(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetVMsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') if api_version == '2016-03-30': @@ -1395,8 +1395,8 @@ def virtual_machine_scale_set_vms(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vms'".format(api_version)) self._config.api_version = api_version @@ -1413,7 +1413,7 @@ def virtual_machine_scale_sets(self): * 2019-12-01: :class:`VirtualMachineScaleSetsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetsOperations` * 2021-07-01: :class:`VirtualMachineScaleSetsOperations` - * 2024-07-01: :class:`VirtualMachineScaleSetsOperations` + * 2024-11-01: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') if api_version == '2016-03-30': @@ -1430,8 +1430,8 @@ def virtual_machine_scale_sets(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_sets'".format(api_version)) self._config.api_version = api_version @@ -1448,7 +1448,7 @@ def virtual_machine_sizes(self): * 2019-12-01: :class:`VirtualMachineSizesOperations` * 2020-06-01: :class:`VirtualMachineSizesOperations` * 2021-07-01: :class:`VirtualMachineSizesOperations` - * 2024-07-01: :class:`VirtualMachineSizesOperations` + * 2024-11-01: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') if api_version == '2016-03-30': @@ -1465,8 +1465,8 @@ def virtual_machine_sizes(self): from ..v2020_06_01.aio.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachineSizesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachineSizesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_sizes'".format(api_version)) self._config.api_version = api_version @@ -1483,7 +1483,7 @@ def virtual_machines(self): * 2019-12-01: :class:`VirtualMachinesOperations` * 2020-06-01: :class:`VirtualMachinesOperations` * 2021-07-01: :class:`VirtualMachinesOperations` - * 2024-07-01: :class:`VirtualMachinesOperations` + * 2024-11-01: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') if api_version == '2016-03-30': @@ -1500,8 +1500,8 @@ def virtual_machines(self): from ..v2020_06_01.aio.operations import VirtualMachinesOperations as OperationClass elif api_version == '2021-07-01': from ..v2021_07_01.aio.operations import VirtualMachinesOperations as OperationClass - elif api_version == '2024-07-01': - from ..v2024_07_01.aio.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2024-11-01': + from ..v2024_11_01.aio.operations import VirtualMachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machines'".format(api_version)) self._config.api_version = api_version diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models.py index c06b98c58a13..33e8c788683d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models.py @@ -7,5 +7,5 @@ from .v2021_07_01.models import * from .v2023_07_03.models import * from .v2024_03_02.models import * -from .v2024_07_01.models import * +from .v2024_11_01.models import * from .v2024_11_04.models import * diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_04_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_04_02/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_04_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_04_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/__init__.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/__init__.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/__init__.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_compute_management_client.py similarity index 83% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_compute_management_client.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_compute_management_client.py index 67e167d84a23..5c780f4bc783 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_compute_management_client.py @@ -55,79 +55,79 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes """Compute Client. :ivar operations: Operations operations - :vartype operations: azure.mgmt.compute.v2024_07_01.operations.Operations + :vartype operations: azure.mgmt.compute.v2024_11_01.operations.Operations :ivar usage: UsageOperations operations - :vartype usage: azure.mgmt.compute.v2024_07_01.operations.UsageOperations + :vartype usage: azure.mgmt.compute.v2024_11_01.operations.UsageOperations :ivar virtual_machine_sizes: VirtualMachineSizesOperations operations :vartype virtual_machine_sizes: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineSizesOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineSizesOperations :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations :vartype virtual_machine_scale_sets: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetsOperations :ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations operations :vartype virtual_machine_scale_set_extensions: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetExtensionsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetExtensionsOperations :ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations operations :vartype virtual_machine_scale_set_rolling_upgrades: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetRollingUpgradesOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetRollingUpgradesOperations :ivar virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations operations :vartype virtual_machine_scale_set_vm_extensions: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetVMExtensionsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetVMExtensionsOperations :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations :vartype virtual_machine_scale_set_vms: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetVMsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetVMsOperations :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations :vartype virtual_machine_extensions: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineExtensionsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineExtensionsOperations :ivar virtual_machines: VirtualMachinesOperations operations - :vartype virtual_machines: azure.mgmt.compute.v2024_07_01.operations.VirtualMachinesOperations + :vartype virtual_machines: azure.mgmt.compute.v2024_11_01.operations.VirtualMachinesOperations :ivar virtual_machine_images: VirtualMachineImagesOperations operations :vartype virtual_machine_images: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineImagesOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineImagesOperations :ivar virtual_machine_images_edge_zone: VirtualMachineImagesEdgeZoneOperations operations :vartype virtual_machine_images_edge_zone: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineImagesEdgeZoneOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineImagesEdgeZoneOperations :ivar virtual_machine_extension_images: VirtualMachineExtensionImagesOperations operations :vartype virtual_machine_extension_images: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineExtensionImagesOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineExtensionImagesOperations :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: - azure.mgmt.compute.v2024_07_01.operations.AvailabilitySetsOperations + azure.mgmt.compute.v2024_11_01.operations.AvailabilitySetsOperations :ivar proximity_placement_groups: ProximityPlacementGroupsOperations operations :vartype proximity_placement_groups: - azure.mgmt.compute.v2024_07_01.operations.ProximityPlacementGroupsOperations + azure.mgmt.compute.v2024_11_01.operations.ProximityPlacementGroupsOperations :ivar dedicated_host_groups: DedicatedHostGroupsOperations operations :vartype dedicated_host_groups: - azure.mgmt.compute.v2024_07_01.operations.DedicatedHostGroupsOperations + azure.mgmt.compute.v2024_11_01.operations.DedicatedHostGroupsOperations :ivar dedicated_hosts: DedicatedHostsOperations operations - :vartype dedicated_hosts: azure.mgmt.compute.v2024_07_01.operations.DedicatedHostsOperations + :vartype dedicated_hosts: azure.mgmt.compute.v2024_11_01.operations.DedicatedHostsOperations :ivar ssh_public_keys: SshPublicKeysOperations operations - :vartype ssh_public_keys: azure.mgmt.compute.v2024_07_01.operations.SshPublicKeysOperations + :vartype ssh_public_keys: azure.mgmt.compute.v2024_11_01.operations.SshPublicKeysOperations :ivar images: ImagesOperations operations - :vartype images: azure.mgmt.compute.v2024_07_01.operations.ImagesOperations + :vartype images: azure.mgmt.compute.v2024_11_01.operations.ImagesOperations :ivar restore_point_collections: RestorePointCollectionsOperations operations :vartype restore_point_collections: - azure.mgmt.compute.v2024_07_01.operations.RestorePointCollectionsOperations + azure.mgmt.compute.v2024_11_01.operations.RestorePointCollectionsOperations :ivar restore_points: RestorePointsOperations operations - :vartype restore_points: azure.mgmt.compute.v2024_07_01.operations.RestorePointsOperations + :vartype restore_points: azure.mgmt.compute.v2024_11_01.operations.RestorePointsOperations :ivar capacity_reservation_groups: CapacityReservationGroupsOperations operations :vartype capacity_reservation_groups: - azure.mgmt.compute.v2024_07_01.operations.CapacityReservationGroupsOperations + azure.mgmt.compute.v2024_11_01.operations.CapacityReservationGroupsOperations :ivar capacity_reservations: CapacityReservationsOperations operations :vartype capacity_reservations: - azure.mgmt.compute.v2024_07_01.operations.CapacityReservationsOperations + azure.mgmt.compute.v2024_11_01.operations.CapacityReservationsOperations :ivar log_analytics: LogAnalyticsOperations operations - :vartype log_analytics: azure.mgmt.compute.v2024_07_01.operations.LogAnalyticsOperations + :vartype log_analytics: azure.mgmt.compute.v2024_11_01.operations.LogAnalyticsOperations :ivar virtual_machine_run_commands: VirtualMachineRunCommandsOperations operations :vartype virtual_machine_run_commands: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineRunCommandsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineRunCommandsOperations :ivar virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations operations :vartype virtual_machine_scale_set_vm_run_commands: - azure.mgmt.compute.v2024_07_01.operations.VirtualMachineScaleSetVMRunCommandsOperations + azure.mgmt.compute.v2024_11_01.operations.VirtualMachineScaleSetVMRunCommandsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure @@ -135,7 +135,7 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -176,77 +176,77 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") - self.usage = UsageOperations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") + self.usage = UsageOperations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") self.virtual_machine_sizes = VirtualMachineSizesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vm_extensions = VirtualMachineScaleSetVMExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_extensions = VirtualMachineExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machines = VirtualMachinesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_images = VirtualMachineImagesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_images_edge_zone = VirtualMachineImagesEdgeZoneOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.availability_sets = AvailabilitySetsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.proximity_placement_groups = ProximityPlacementGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.dedicated_host_groups = DedicatedHostGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.dedicated_hosts = DedicatedHostsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.ssh_public_keys = SshPublicKeysOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) - self.images = ImagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") + self.images = ImagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") self.restore_point_collections = RestorePointCollectionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.restore_points = RestorePointsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.capacity_reservation_groups = CapacityReservationGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.capacity_reservations = CapacityReservationsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.log_analytics = LogAnalyticsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_configuration.py similarity index 96% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_configuration.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_configuration.py index 22f72f6c2113..da0ddc20eae1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_configuration.py @@ -28,13 +28,13 @@ class ComputeManagementClientConfiguration: # pylint: disable=too-many-instance :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-07-01") + api_version: str = kwargs.pop("api_version", "2024-11-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_metadata.json similarity index 99% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_metadata.json rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_metadata.json index f53d9ff2bf79..373d6f1356a8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2024-07-01", - "total_api_version_list": ["2024-07-01"], + "chosen_version": "2024-11-01", + "total_api_version_list": ["2024-11-01"], "client": { "name": "ComputeManagementClient", "filename": "_compute_management_client", diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_patch.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_patch.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_patch.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_patch.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_version.py similarity index 95% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_version.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/__init__.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/__init__.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/__init__.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_compute_management_client.py similarity index 84% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_compute_management_client.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_compute_management_client.py index adc02c6df27a..b0d2e626c38c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_compute_management_client.py @@ -55,81 +55,81 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes """Compute Client. :ivar operations: Operations operations - :vartype operations: azure.mgmt.compute.v2024_07_01.aio.operations.Operations + :vartype operations: azure.mgmt.compute.v2024_11_01.aio.operations.Operations :ivar usage: UsageOperations operations - :vartype usage: azure.mgmt.compute.v2024_07_01.aio.operations.UsageOperations + :vartype usage: azure.mgmt.compute.v2024_11_01.aio.operations.UsageOperations :ivar virtual_machine_sizes: VirtualMachineSizesOperations operations :vartype virtual_machine_sizes: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineSizesOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineSizesOperations :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations :vartype virtual_machine_scale_sets: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetsOperations :ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations operations :vartype virtual_machine_scale_set_extensions: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetExtensionsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetExtensionsOperations :ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations operations :vartype virtual_machine_scale_set_rolling_upgrades: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetRollingUpgradesOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetRollingUpgradesOperations :ivar virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations operations :vartype virtual_machine_scale_set_vm_extensions: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetVMExtensionsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetVMExtensionsOperations :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations :vartype virtual_machine_scale_set_vms: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetVMsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetVMsOperations :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations :vartype virtual_machine_extensions: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineExtensionsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineExtensionsOperations :ivar virtual_machines: VirtualMachinesOperations operations :vartype virtual_machines: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachinesOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachinesOperations :ivar virtual_machine_images: VirtualMachineImagesOperations operations :vartype virtual_machine_images: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineImagesOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineImagesOperations :ivar virtual_machine_images_edge_zone: VirtualMachineImagesEdgeZoneOperations operations :vartype virtual_machine_images_edge_zone: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineImagesEdgeZoneOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineImagesEdgeZoneOperations :ivar virtual_machine_extension_images: VirtualMachineExtensionImagesOperations operations :vartype virtual_machine_extension_images: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineExtensionImagesOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineExtensionImagesOperations :ivar availability_sets: AvailabilitySetsOperations operations :vartype availability_sets: - azure.mgmt.compute.v2024_07_01.aio.operations.AvailabilitySetsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.AvailabilitySetsOperations :ivar proximity_placement_groups: ProximityPlacementGroupsOperations operations :vartype proximity_placement_groups: - azure.mgmt.compute.v2024_07_01.aio.operations.ProximityPlacementGroupsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.ProximityPlacementGroupsOperations :ivar dedicated_host_groups: DedicatedHostGroupsOperations operations :vartype dedicated_host_groups: - azure.mgmt.compute.v2024_07_01.aio.operations.DedicatedHostGroupsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.DedicatedHostGroupsOperations :ivar dedicated_hosts: DedicatedHostsOperations operations :vartype dedicated_hosts: - azure.mgmt.compute.v2024_07_01.aio.operations.DedicatedHostsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.DedicatedHostsOperations :ivar ssh_public_keys: SshPublicKeysOperations operations - :vartype ssh_public_keys: azure.mgmt.compute.v2024_07_01.aio.operations.SshPublicKeysOperations + :vartype ssh_public_keys: azure.mgmt.compute.v2024_11_01.aio.operations.SshPublicKeysOperations :ivar images: ImagesOperations operations - :vartype images: azure.mgmt.compute.v2024_07_01.aio.operations.ImagesOperations + :vartype images: azure.mgmt.compute.v2024_11_01.aio.operations.ImagesOperations :ivar restore_point_collections: RestorePointCollectionsOperations operations :vartype restore_point_collections: - azure.mgmt.compute.v2024_07_01.aio.operations.RestorePointCollectionsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.RestorePointCollectionsOperations :ivar restore_points: RestorePointsOperations operations - :vartype restore_points: azure.mgmt.compute.v2024_07_01.aio.operations.RestorePointsOperations + :vartype restore_points: azure.mgmt.compute.v2024_11_01.aio.operations.RestorePointsOperations :ivar capacity_reservation_groups: CapacityReservationGroupsOperations operations :vartype capacity_reservation_groups: - azure.mgmt.compute.v2024_07_01.aio.operations.CapacityReservationGroupsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.CapacityReservationGroupsOperations :ivar capacity_reservations: CapacityReservationsOperations operations :vartype capacity_reservations: - azure.mgmt.compute.v2024_07_01.aio.operations.CapacityReservationsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.CapacityReservationsOperations :ivar log_analytics: LogAnalyticsOperations operations - :vartype log_analytics: azure.mgmt.compute.v2024_07_01.aio.operations.LogAnalyticsOperations + :vartype log_analytics: azure.mgmt.compute.v2024_11_01.aio.operations.LogAnalyticsOperations :ivar virtual_machine_run_commands: VirtualMachineRunCommandsOperations operations :vartype virtual_machine_run_commands: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineRunCommandsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineRunCommandsOperations :ivar virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations operations :vartype virtual_machine_scale_set_vm_run_commands: - azure.mgmt.compute.v2024_07_01.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations + azure.mgmt.compute.v2024_11_01.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure @@ -137,7 +137,7 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -178,77 +178,77 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") - self.usage = UsageOperations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") + self.usage = UsageOperations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") self.virtual_machine_sizes = VirtualMachineSizesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vm_extensions = VirtualMachineScaleSetVMExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_extensions = VirtualMachineExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machines = VirtualMachinesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_images = VirtualMachineImagesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_images_edge_zone = VirtualMachineImagesEdgeZoneOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.availability_sets = AvailabilitySetsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.proximity_placement_groups = ProximityPlacementGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.dedicated_host_groups = DedicatedHostGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.dedicated_hosts = DedicatedHostsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.ssh_public_keys = SshPublicKeysOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) - self.images = ImagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-07-01") + self.images = ImagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-11-01") self.restore_point_collections = RestorePointCollectionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.restore_points = RestorePointsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.capacity_reservation_groups = CapacityReservationGroupsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.capacity_reservations = CapacityReservationsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.log_analytics = LogAnalyticsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-07-01" + self._client, self._config, self._serialize, self._deserialize, "2024-11-01" ) def _send_request( diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_configuration.py similarity index 96% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_configuration.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_configuration.py index c8d72d0b6036..5452cdff0995 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_configuration.py @@ -28,13 +28,13 @@ class ComputeManagementClientConfiguration: # pylint: disable=too-many-instance :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-07-01") + api_version: str = kwargs.pop("api_version", "2024-11-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_patch.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_patch.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/_patch.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/_patch.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/__init__.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/__init__.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/__init__.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/_operations.py similarity index 92% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/_operations.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/_operations.py index 5a01c8b7fead..c803b24faa74 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/_operations.py @@ -33,13 +33,17 @@ from ... import models as _models from ...operations._operations import ( + build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request, + build_availability_sets_convert_to_virtual_machine_scale_set_request, build_availability_sets_create_or_update_request, build_availability_sets_delete_request, build_availability_sets_get_request, build_availability_sets_list_available_sizes_request, build_availability_sets_list_by_subscription_request, build_availability_sets_list_request, + build_availability_sets_start_migration_to_virtual_machine_scale_set_request, build_availability_sets_update_request, + build_availability_sets_validate_migration_to_virtual_machine_scale_set_request, build_capacity_reservation_groups_create_or_update_request, build_capacity_reservation_groups_delete_request, build_capacity_reservation_groups_get_request, @@ -116,6 +120,7 @@ build_virtual_machine_images_list_publishers_request, build_virtual_machine_images_list_request, build_virtual_machine_images_list_skus_request, + build_virtual_machine_images_list_with_properties_request, build_virtual_machine_run_commands_create_or_update_request, build_virtual_machine_run_commands_delete_request, build_virtual_machine_run_commands_get_by_virtual_machine_request, @@ -201,6 +206,7 @@ build_virtual_machines_list_available_sizes_request, build_virtual_machines_list_by_location_request, build_virtual_machines_list_request, + build_virtual_machines_migrate_to_vm_scale_set_request, build_virtual_machines_perform_maintenance_request, build_virtual_machines_power_off_request, build_virtual_machines_reapply_request, @@ -228,7 +234,7 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`operations` attribute. """ @@ -249,13 +255,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.ComputeOperationValue"]: :return: An iterator like instance of either ComputeOperationValue or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.ComputeOperationValue] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.ComputeOperationValue] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ComputeOperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -324,7 +330,7 @@ class UsageOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`usage` attribute. """ @@ -346,13 +352,13 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Usage"]: :param location: The location for which resource usage is queried. Required. :type location: str :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.Usage] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.Usage] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -423,7 +429,7 @@ class VirtualMachineSizesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_sizes` attribute. """ @@ -446,13 +452,13 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.VirtualMa :type location: str :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -523,7 +529,7 @@ class VirtualMachineScaleSetsOperations: # pylint: disable=too-many-public-meth **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_sets` attribute. """ @@ -547,13 +553,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncIterable["_mode :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -638,7 +644,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -707,7 +713,7 @@ async def begin_create_or_update( :param vm_scale_set_name: The name of the VM scale set to create or update. Required. :type vm_scale_set_name: str :param parameters: The scale set object. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -722,7 +728,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -760,7 +766,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -783,7 +789,7 @@ async def begin_create_or_update( :type vm_scale_set_name: str :param parameters: The scale set object. Is either a VirtualMachineScaleSet type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -795,13 +801,13 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -868,7 +874,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -937,7 +943,7 @@ async def begin_update( :param vm_scale_set_name: The name of the VM scale set to create or update. Required. :type vm_scale_set_name: str :param parameters: The scale set object. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdate :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -952,7 +958,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -990,7 +996,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1013,7 +1019,7 @@ async def begin_update( :type vm_scale_set_name: str :param parameters: The scale set object. Is either a VirtualMachineScaleSetUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdate or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting @@ -1026,13 +1032,13 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1092,7 +1098,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_delete_request( @@ -1149,7 +1155,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1205,9 +1211,9 @@ async def get( :keyword expand: The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation. "userData" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetVMScaleSets + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetVMScaleSets :return: VirtualMachineScaleSet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1221,7 +1227,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_request( @@ -1273,7 +1279,7 @@ async def _deallocate_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1347,7 +1353,7 @@ async def begin_deallocate( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword hibernate: Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only). Default value is None. @@ -1415,7 +1421,7 @@ async def begin_deallocate( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :keyword hibernate: Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only). Default value is None. @@ -1427,7 +1433,7 @@ async def begin_deallocate( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1488,7 +1494,7 @@ async def _delete_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1557,7 +1563,7 @@ async def begin_delete_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword force_deletion: Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview). Default value is None. :paramtype force_deletion: bool @@ -1619,7 +1625,7 @@ async def begin_delete_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceRequiredIDs type or a IO[bytes] type. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] :keyword force_deletion: Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview). Default value is None. :paramtype force_deletion: bool @@ -1630,7 +1636,7 @@ async def begin_delete_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1682,7 +1688,7 @@ async def get_instance_view( :param vm_scale_set_name: The name of the VM scale set. Required. :type vm_scale_set_name: str :return: VirtualMachineScaleSetInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1696,7 +1702,7 @@ async def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_instance_view_request( @@ -1736,13 +1742,13 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_model :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1815,13 +1821,13 @@ def list_all(self, **kwargs: Any) -> AsyncIterable["_models.VirtualMachineScaleS :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListWithLinkResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1898,13 +1904,13 @@ def list_skus( :return: An iterator like instance of either VirtualMachineScaleSetSku or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSku] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSku] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListSkusResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1983,13 +1989,13 @@ def get_os_upgrade_history( :return: An iterator like instance of either UpgradeOperationHistoricalStatusInfo or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoricalStatusInfo] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoricalStatusInfo] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListOSUpgradeHistory] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -2074,7 +2080,7 @@ async def _power_off_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2149,7 +2155,7 @@ async def begin_power_off( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword skip_shutdown: The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified. Default value is False. @@ -2219,7 +2225,7 @@ async def begin_power_off( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :keyword skip_shutdown: The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified. Default value is False. @@ -2231,7 +2237,7 @@ async def begin_power_off( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2290,7 +2296,7 @@ async def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2360,7 +2366,7 @@ async def begin_restart( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2413,7 +2419,7 @@ async def begin_restart( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2421,7 +2427,7 @@ async def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2479,7 +2485,7 @@ async def _start_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2549,7 +2555,7 @@ async def begin_start( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2602,7 +2608,7 @@ async def begin_start( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2610,7 +2616,7 @@ async def begin_start( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2664,7 +2670,7 @@ async def _reapply_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_reapply_request( @@ -2722,7 +2728,7 @@ async def begin_reapply( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2779,7 +2785,7 @@ async def _redeploy_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2850,7 +2856,7 @@ async def begin_redeploy( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2905,7 +2911,7 @@ async def begin_redeploy( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2913,7 +2919,7 @@ async def begin_redeploy( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2971,7 +2977,7 @@ async def _perform_maintenance_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3044,7 +3050,7 @@ async def begin_perform_maintenance( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3103,7 +3109,7 @@ async def begin_perform_maintenance( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3111,7 +3117,7 @@ async def begin_perform_maintenance( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3169,7 +3175,7 @@ async def _update_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3236,7 +3242,7 @@ async def begin_update_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3289,7 +3295,7 @@ async def begin_update_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceRequiredIDs type or a IO[bytes] type. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3297,7 +3303,7 @@ async def begin_update_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3355,7 +3361,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3426,7 +3432,7 @@ async def begin_reimage( :type vm_scale_set_name: str :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. Default value is None. :type vm_scale_set_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetReimageParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3482,7 +3488,7 @@ async def begin_reimage( :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. Is either a VirtualMachineScaleSetReimageParameters type or a IO[bytes] type. Default value is None. :type vm_scale_set_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetReimageParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetReimageParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3490,7 +3496,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3548,7 +3554,7 @@ async def _reimage_all_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3619,7 +3625,7 @@ async def begin_reimage_all( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3674,7 +3680,7 @@ async def begin_reimage_all( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3682,7 +3688,7 @@ async def begin_reimage_all( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3740,7 +3746,7 @@ async def _approve_rolling_upgrade_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -3814,7 +3820,7 @@ async def begin_approve_rolling_upgrade( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3869,7 +3875,7 @@ async def begin_approve_rolling_upgrade( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3877,7 +3883,7 @@ async def begin_approve_rolling_upgrade( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -3945,7 +3951,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( # pylint: requested. Default value is None. :paramtype placement_group_id: str :return: RecoveryWalkResponse or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RecoveryWalkResponse + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RecoveryWalkResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -3959,7 +3965,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( # pylint: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RecoveryWalkResponse] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_update_domain_walk_request( @@ -4012,7 +4018,7 @@ async def convert_to_single_placement_group( :type vm_scale_set_name: str :param parameters: The input object for ConvertToSinglePlacementGroup API. Required. :type parameters: - ~azure.mgmt.compute.v2024_07_01.models.VMScaleSetConvertToSinglePlacementGroupInput + ~azure.mgmt.compute.v2024_11_01.models.VMScaleSetConvertToSinglePlacementGroupInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4066,7 +4072,7 @@ async def convert_to_single_placement_group( :param parameters: The input object for ConvertToSinglePlacementGroup API. Is either a VMScaleSetConvertToSinglePlacementGroupInput type or a IO[bytes] type. Required. :type parameters: - ~azure.mgmt.compute.v2024_07_01.models.VMScaleSetConvertToSinglePlacementGroupInput or + ~azure.mgmt.compute.v2024_11_01.models.VMScaleSetConvertToSinglePlacementGroupInput or IO[bytes] :return: None or the result of cls(response) :rtype: None @@ -4083,7 +4089,7 @@ async def convert_to_single_placement_group( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -4140,7 +4146,7 @@ async def _set_orchestration_service_state_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4206,7 +4212,7 @@ async def begin_set_orchestration_service_state( Required. :type vm_scale_set_name: str :param parameters: The input object for SetOrchestrationServiceState API. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4259,7 +4265,7 @@ async def begin_set_orchestration_service_state( :type vm_scale_set_name: str :param parameters: The input object for SetOrchestrationServiceState API. Is either a OrchestrationServiceStateInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateInput or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateInput or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -4268,7 +4274,7 @@ async def begin_set_orchestration_service_state( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4315,7 +4321,7 @@ class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=name-too-lo **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_extensions` attribute. """ @@ -4348,7 +4354,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4420,14 +4426,14 @@ async def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create VM scale set Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4460,7 +4466,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4485,17 +4491,17 @@ async def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create VM scale set Extension operation. Is either a VirtualMachineScaleSetExtension type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4559,7 +4565,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -4631,14 +4637,14 @@ async def begin_update( :param extension_parameters: Parameters supplied to the Update VM scale set Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4671,7 +4677,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -4697,17 +4703,17 @@ async def begin_update( operation. Is either a VirtualMachineScaleSetExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -4766,7 +4772,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_delete_request( @@ -4823,7 +4829,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -4882,7 +4888,7 @@ async def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -4896,7 +4902,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_get_request( @@ -4942,13 +4948,13 @@ def list( :return: An iterator like instance of either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetExtensionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -5020,7 +5026,7 @@ class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=name-t **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_rolling_upgrades` attribute. """ @@ -5048,7 +5054,7 @@ async def _cancel_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_cancel_request( @@ -5101,7 +5107,7 @@ async def begin_cancel( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -5152,7 +5158,7 @@ async def _start_os_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( @@ -5207,7 +5213,7 @@ async def begin_start_os_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -5258,7 +5264,7 @@ async def _start_extension_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_request( @@ -5313,7 +5319,7 @@ async def begin_start_extension_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -5361,7 +5367,7 @@ async def get_latest( :param vm_scale_set_name: The name of the VM scale set. Required. :type vm_scale_set_name: str :return: RollingUpgradeStatusInfo or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeStatusInfo + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeStatusInfo :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -5375,7 +5381,7 @@ async def get_latest( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RollingUpgradeStatusInfo] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( @@ -5413,7 +5419,7 @@ class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=name-too- **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vm_extensions` attribute. """ @@ -5447,7 +5453,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5522,14 +5528,14 @@ async def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5564,7 +5570,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5591,17 +5597,17 @@ async def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Is either a VirtualMachineScaleSetVMExtension type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5667,7 +5673,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -5742,14 +5748,14 @@ async def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5784,7 +5790,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -5812,17 +5818,17 @@ async def begin_update( operation. Is either a VirtualMachineScaleSetVMExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -5882,7 +5888,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_delete_request( @@ -5941,7 +5947,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6004,7 +6010,7 @@ async def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetVMExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -6018,7 +6024,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_get_request( @@ -6073,7 +6079,7 @@ async def list( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetVMExtensionsListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionsListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionsListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -6087,7 +6093,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_list_request( @@ -6129,7 +6135,7 @@ class VirtualMachineScaleSetVMsOperations: # pylint: disable=too-many-public-me **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vms` attribute. """ @@ -6164,7 +6170,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -6238,7 +6244,7 @@ async def begin_reimage( :param vm_scale_set_vm_reimage_input: Parameters for the Reimaging Virtual machine in ScaleSet. Default value is None. :type vm_scale_set_vm_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMReimageParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -6300,7 +6306,7 @@ async def begin_reimage( Is either a VirtualMachineScaleSetVMReimageParameters type or a IO[bytes] type. Default value is None. :type vm_scale_set_vm_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMReimageParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMReimageParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -6308,7 +6314,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -6363,7 +6369,7 @@ async def _reimage_all_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_reimage_all_request( @@ -6420,7 +6426,7 @@ async def begin_reimage_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6472,7 +6478,7 @@ async def _approve_rolling_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( @@ -6531,7 +6537,7 @@ async def begin_approve_rolling_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6583,7 +6589,7 @@ async def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_deallocate_request( @@ -6641,7 +6647,7 @@ async def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -6701,7 +6707,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -6776,7 +6782,7 @@ async def begin_update( :type instance_id: str :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -6791,7 +6797,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -6834,7 +6840,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -6861,7 +6867,7 @@ async def begin_update( :type instance_id: str :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. Is either a VirtualMachineScaleSetVM type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -6873,13 +6879,13 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -6946,7 +6952,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_delete_request( @@ -7012,7 +7018,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7071,10 +7077,12 @@ async def get( :type instance_id: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual - machine. Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + machine. 'resiliencyView' will retrieve the instance view of the Virtual machine (if + applicable) and include 'resilientVMDeletionStatus' as part of it. Known values are: + "instanceView", "userData", and "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: VirtualMachineScaleSetVM or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -7088,7 +7096,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_request( @@ -7134,7 +7142,7 @@ async def get_instance_view( :param instance_id: The instance ID of the virtual machine. Required. :type instance_id: str :return: VirtualMachineScaleSetVMInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -7148,7 +7156,7 @@ async def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_instance_view_request( @@ -7210,13 +7218,13 @@ def list( :return: An iterator like instance of either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7304,7 +7312,7 @@ async def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_power_off_request( @@ -7374,7 +7382,7 @@ async def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7427,7 +7435,7 @@ async def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_restart_request( @@ -7483,7 +7491,7 @@ async def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7535,7 +7543,7 @@ async def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_start_request( @@ -7591,7 +7599,7 @@ async def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7643,7 +7651,7 @@ async def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_redeploy_request( @@ -7700,7 +7708,7 @@ async def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7762,7 +7770,7 @@ async def retrieve_boot_diagnostics_data( with a default expiration duration of 120 minutes. Default value is None. :paramtype sas_uri_expiration_time_in_minutes: int :return: RetrieveBootDiagnosticsDataResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RetrieveBootDiagnosticsDataResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RetrieveBootDiagnosticsDataResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -7776,7 +7784,7 @@ async def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( @@ -7823,7 +7831,7 @@ async def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_perform_maintenance_request( @@ -7879,7 +7887,7 @@ async def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7944,7 +7952,7 @@ async def simulate_eviction( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_simulate_eviction_request( @@ -7991,7 +7999,7 @@ async def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8065,14 +8073,14 @@ async def begin_attach_detach_data_disks( :type instance_id: str :param parameters: Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8104,7 +8112,7 @@ async def begin_attach_detach_data_disks( :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8128,18 +8136,18 @@ async def begin_attach_detach_data_disks( :param parameters: Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM. Is either a AttachDetachDataDisksRequest type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8205,7 +8213,7 @@ async def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8274,14 +8282,14 @@ async def begin_run_command( :param instance_id: The instance ID of the virtual machine. Required. :type instance_id: str :param parameters: Parameters supplied to the Run command operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8312,7 +8320,7 @@ async def begin_run_command( :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8335,17 +8343,17 @@ async def begin_run_command( :type instance_id: str :param parameters: Parameters supplied to the Run command operation. Is either a RunCommandInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput or IO[bytes] :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8399,7 +8407,7 @@ class VirtualMachineExtensionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_extensions` attribute. """ @@ -8432,7 +8440,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8503,14 +8511,14 @@ async def begin_create_or_update( :type vm_extension_name: str :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Required. - :type extension_parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension + :type extension_parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8543,7 +8551,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8567,18 +8575,18 @@ async def begin_create_or_update( :type vm_extension_name: str :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Is either a VirtualMachineExtension type or a IO[bytes] type. Required. - :type extension_parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension or + :type extension_parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8642,7 +8650,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -8714,14 +8722,14 @@ async def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8754,7 +8762,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -8779,17 +8787,17 @@ async def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Is either a VirtualMachineExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -8848,7 +8856,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_delete_request( @@ -8905,7 +8913,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -8964,7 +8972,7 @@ async def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -8978,7 +8986,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_get_request( @@ -9024,7 +9032,7 @@ async def list( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineExtensionsListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionsListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionsListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -9038,7 +9046,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_list_request( @@ -9077,7 +9085,7 @@ class VirtualMachinesOperations: # pylint: disable=too-many-public-methods **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machines` attribute. """ @@ -9100,13 +9108,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncIterable["_mode :type location: str :return: An iterator like instance of either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -9188,7 +9196,7 @@ async def _capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9254,14 +9262,14 @@ async def begin_capture( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Capture Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9290,7 +9298,7 @@ async def begin_capture( :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9311,18 +9319,18 @@ async def begin_capture( :type vm_name: str :param parameters: Parameters supplied to the Capture Virtual Machine operation. Is either a VirtualMachineCaptureParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9389,7 +9397,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9459,7 +9467,7 @@ async def begin_create_or_update( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Create Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -9474,7 +9482,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9513,7 +9521,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9537,7 +9545,7 @@ async def begin_create_or_update( :type vm_name: str :param parameters: Parameters supplied to the Create Virtual Machine operation. Is either a VirtualMachine type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -9549,13 +9557,13 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9622,7 +9630,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -9691,7 +9699,7 @@ async def begin_update( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Update Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineUpdate :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -9706,7 +9714,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9744,7 +9752,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -9767,7 +9775,7 @@ async def begin_update( :type vm_name: str :param parameters: Parameters supplied to the Update Virtual Machine operation. Is either a VirtualMachineUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineUpdate or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -9779,13 +9787,13 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -9845,7 +9853,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_delete_request( @@ -9892,8 +9900,14 @@ async def begin_delete( :type resource_group_name: str :param vm_name: The name of the virtual machine. Required. :type vm_name: str - :keyword force_deletion: Optional parameter to force delete virtual machines. Default value is - None. + :keyword force_deletion: Optional parameter to force delete virtual machines. + NOTE: As of api-version 2024-11-01, we are rolling out a feature where if the forceDeletion + parameter is unspecified OR not explicitly set to false, AND all of the VM's attached disks + including the OS disk are marked with the delete option, then the VM will be force deleted. For + more details on how to configure delete options for a VM's resources, see `Delete a VM and + attached resources `_. To + avoid defaulting to force delete, ensure that the forceDeletion parameter is explicitly set to + false. This feature is expected to rollout by end of March 2025. Default value is None. :paramtype force_deletion: bool :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -9902,7 +9916,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -9959,10 +9973,10 @@ async def get( snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation. - Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + Known values are: "instanceView", "userData", and "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: VirtualMachine or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -9976,7 +9990,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) _request = build_virtual_machines_get_request( @@ -10019,7 +10033,7 @@ async def instance_view( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :return: VirtualMachineInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -10033,7 +10047,7 @@ async def instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machines_instance_view_request( @@ -10078,7 +10092,7 @@ async def _convert_to_managed_disks_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_convert_to_managed_disks_request( @@ -10132,7 +10146,7 @@ async def begin_convert_to_managed_disks( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10183,7 +10197,7 @@ async def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_deallocate_request( @@ -10240,7 +10254,7 @@ async def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10306,7 +10320,7 @@ async def generalize(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_generalize_request( @@ -10356,16 +10370,16 @@ def list( :keyword expand: The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypeForListVMs + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypeForListVMs :return: An iterator like instance of either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10455,16 +10469,16 @@ def list_all( :keyword expand: The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForListVMs + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForListVMs :return: An iterator like instance of either VirtualMachine or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10543,13 +10557,13 @@ def list_available_sizes( :type vm_name: str :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -10628,7 +10642,7 @@ async def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_power_off_request( @@ -10689,7 +10703,7 @@ async def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10739,7 +10753,7 @@ async def _reapply_initial(self, resource_group_name: str, vm_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_reapply_request( @@ -10790,7 +10804,7 @@ async def begin_reapply(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10839,7 +10853,7 @@ async def _restart_initial(self, resource_group_name: str, vm_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_restart_request( @@ -10890,7 +10904,7 @@ async def begin_restart(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10939,7 +10953,7 @@ async def _start_initial(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_start_request( @@ -10990,7 +11004,7 @@ async def begin_start(self, resource_group_name: str, vm_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11039,7 +11053,7 @@ async def _redeploy_initial(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_redeploy_request( @@ -11090,7 +11104,7 @@ async def begin_redeploy(self, resource_group_name: str, vm_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11145,7 +11159,7 @@ async def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11219,7 +11233,7 @@ async def begin_reimage( :type vm_name: str :param parameters: Parameters supplied to the Reimage Virtual Machine operation. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineReimageParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -11281,7 +11295,7 @@ async def begin_reimage( :type vm_name: str :param parameters: Parameters supplied to the Reimage Virtual Machine operation. Is either a VirtualMachineReimageParameters type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineReimageParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineReimageParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] @@ -11290,7 +11304,7 @@ async def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -11350,7 +11364,7 @@ async def retrieve_boot_diagnostics_data( with a default expiration duration of 120 minutes. Default value is None. :paramtype sas_uri_expiration_time_in_minutes: int :return: RetrieveBootDiagnosticsDataResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RetrieveBootDiagnosticsDataResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RetrieveBootDiagnosticsDataResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -11364,7 +11378,7 @@ async def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machines_retrieve_boot_diagnostics_data_request( @@ -11410,7 +11424,7 @@ async def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_perform_maintenance_request( @@ -11463,7 +11477,7 @@ async def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11523,7 +11537,7 @@ async def simulate_eviction(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_simulate_eviction_request( @@ -11564,7 +11578,7 @@ async def _assess_patches_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_assess_patches_request( @@ -11613,13 +11627,13 @@ async def begin_assess_patches( :return: An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAssessPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAssessPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineAssessPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11680,7 +11694,7 @@ async def _install_patches_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11747,14 +11761,14 @@ async def begin_install_patches( :param install_patches_input: Input for InstallPatches as directly received by the API. Required. :type install_patches_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11783,7 +11797,7 @@ async def begin_install_patches( :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11804,17 +11818,17 @@ async def begin_install_patches( :param install_patches_input: Input for InstallPatches as directly received by the API. Is either a VirtualMachineInstallPatchesParameters type or a IO[bytes] type. Required. :type install_patches_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineInstallPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -11878,7 +11892,7 @@ async def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -11948,14 +11962,14 @@ async def begin_attach_detach_data_disks( :type vm_name: str :param parameters: Parameters supplied to the attach and detach data disks operation on the virtual machine. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11984,7 +11998,7 @@ async def begin_attach_detach_data_disks( :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12004,18 +12018,18 @@ async def begin_attach_detach_data_disks( :type vm_name: str :param parameters: Parameters supplied to the attach and detach data disks operation on the virtual machine. Is either a AttachDetachDataDisksRequest type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns either StorageProfile or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -12061,6 +12075,194 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + async def _migrate_to_vm_scale_set_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional[Union[_models.MigrateVMToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _json = self._serialize.body(parameters, "MigrateVMToVirtualMachineScaleSetInput") + else: + _json = None + + _request = build_virtual_machines_migrate_to_vm_scale_set_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_migrate_to_vm_scale_set( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional[_models.MigrateVMToVirtualMachineScaleSetInput] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Default value + is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateVMToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_migrate_to_vm_scale_set( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Default value + is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_migrate_to_vm_scale_set( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional[Union[_models.MigrateVMToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Is either a + MigrateVMToVirtualMachineScaleSetInput type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateVMToVirtualMachineScaleSetInput + or IO[bytes] + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._migrate_to_vm_scale_set_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + if polling is True: + polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + async def _run_command_initial( self, resource_group_name: str, @@ -12079,7 +12281,7 @@ async def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -12144,14 +12346,14 @@ async def begin_run_command( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Run command operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12179,7 +12381,7 @@ async def begin_run_command( :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12199,17 +12401,17 @@ async def begin_run_command( :type vm_name: str :param parameters: Parameters supplied to the Run command operation. Is either a RunCommandInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput or IO[bytes] :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -12262,7 +12464,7 @@ class VirtualMachineImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_images` attribute. """ @@ -12293,7 +12495,7 @@ async def get( :param version: A valid image SKU version. Required. :type version: str :return: VirtualMachineImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImage + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12307,7 +12509,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_get_request( @@ -12372,7 +12574,7 @@ async def list( :keyword orderby: Default value is None. :paramtype orderby: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12386,7 +12588,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_request( @@ -12433,7 +12635,7 @@ async def list_offers( :param publisher_name: A valid image publisher. Required. :type publisher_name: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12447,7 +12649,7 @@ async def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_offers_request( @@ -12485,7 +12687,7 @@ async def list_publishers(self, location: str, **kwargs: Any) -> List[_models.Vi :param location: The name of a supported Azure region. Required. :type location: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12499,7 +12701,7 @@ async def list_publishers(self, location: str, **kwargs: Any) -> List[_models.Vi _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_publishers_request( @@ -12542,7 +12744,7 @@ async def list_skus( :param offer: A valid image publisher offer. Required. :type offer: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12556,7 +12758,7 @@ async def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_skus_request( @@ -12599,7 +12801,7 @@ async def list_by_edge_zone( :param edge_zone: The name of the edge zone. Required. :type edge_zone: str :return: VmImagesInEdgeZoneListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VmImagesInEdgeZoneListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VmImagesInEdgeZoneListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12613,7 +12815,7 @@ async def list_by_edge_zone( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VmImagesInEdgeZoneListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_by_edge_zone_request( @@ -12644,49 +12846,46 @@ async def list_by_edge_zone( return deserialized # type: ignore - -class VirtualMachineImagesEdgeZoneOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s - :attr:`virtual_machine_images_edge_zone` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, location: str, edge_zone: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: Any - ) -> _models.VirtualMachineImage: - """Gets a virtual machine image in an edge zone. + @distributed_trace + def list_with_properties( + self, + location: str, + publisher_name: str, + offer: str, + skus: str, + *, + expand: Union[str, _models.Expand], + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineImage"]: + """list_with_properties. :param location: The name of a supported Azure region. Required. :type location: str - :param edge_zone: The name of the edge zone. Required. - :type edge_zone: str :param publisher_name: A valid image publisher. Required. :type publisher_name: str :param offer: A valid image publisher offer. Required. :type offer: str :param skus: A valid image SKU. Required. :type skus: str - :param version: A valid image SKU version. Required. - :type version: str - :return: VirtualMachineImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImage + :keyword expand: The expand expression to apply on the operation. "Properties" Required. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.Expand + :keyword top: Default value is None. + :paramtype top: int + :keyword orderby: Default value is None. + :paramtype orderby: str + :return: An iterator like instance of either VirtualMachineImage or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineImagesWithPropertiesListResult] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -12695,38 +12894,148 @@ async def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) - - _request = build_virtual_machine_images_edge_zone_get_request( - location=location, - edge_zone=edge_zone, - publisher_name=publisher_name, - offer=offer, - skus=skus, - version=version, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + def prepare_request(next_link=None): + if not next_link: - deserialized = self._deserialize("VirtualMachineImage", pipeline_response.http_response) + _request = build_virtual_machine_images_list_with_properties_request( + location=location, + publisher_name=publisher_name, + offer=offer, + skus=skus, + subscription_id=self._config.subscription_id, + expand=expand, + top=top, + orderby=orderby, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineImagesWithPropertiesListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class VirtualMachineImagesEdgeZoneOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s + :attr:`virtual_machine_images_edge_zone` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") + + @distributed_trace_async + async def get( + self, location: str, edge_zone: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: Any + ) -> _models.VirtualMachineImage: + """Gets a virtual machine image in an edge zone. + + :param location: The name of a supported Azure region. Required. + :type location: str + :param edge_zone: The name of the edge zone. Required. + :type edge_zone: str + :param publisher_name: A valid image publisher. Required. + :type publisher_name: str + :param offer: A valid image publisher offer. Required. + :type offer: str + :param skus: A valid image SKU. Required. + :type skus: str + :param version: A valid image SKU version. Required. + :type version: str + :return: VirtualMachineImage or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) + + _request = build_virtual_machine_images_edge_zone_get_request( + location=location, + edge_zone=edge_zone, + publisher_name=publisher_name, + offer=offer, + skus=skus, + version=version, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("VirtualMachineImage", pipeline_response.http_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -12769,7 +13078,7 @@ async def list( Default value is None. :paramtype orderby: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12783,7 +13092,7 @@ async def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_request( @@ -12834,7 +13143,7 @@ async def list_offers( :param publisher_name: A valid image publisher. Required. :type publisher_name: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12848,7 +13157,7 @@ async def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_offers_request( @@ -12891,7 +13200,7 @@ async def list_publishers( :param edge_zone: The name of the edge zone. Required. :type edge_zone: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12905,7 +13214,7 @@ async def list_publishers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_publishers_request( @@ -12952,7 +13261,7 @@ async def list_skus( :param offer: A valid image publisher offer. Required. :type offer: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12966,7 +13275,7 @@ async def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_skus_request( @@ -13006,7 +13315,7 @@ class VirtualMachineExtensionImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_extension_images` attribute. """ @@ -13035,7 +13344,7 @@ async def get( :param version: Required. :type version: str :return: VirtualMachineExtensionImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13049,7 +13358,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtensionImage] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_get_request( @@ -13093,7 +13402,7 @@ async def list_types( :param publisher_name: Required. :type publisher_name: str :return: list of VirtualMachineExtensionImage or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13107,7 +13416,7 @@ async def list_types( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_types_request( @@ -13165,7 +13474,7 @@ async def list_versions( :keyword orderby: Default value is None. :paramtype orderby: str :return: list of VirtualMachineExtensionImage or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13179,7 +13488,7 @@ async def list_versions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_versions_request( @@ -13221,7 +13530,7 @@ class AvailabilitySetsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`availability_sets` attribute. """ @@ -13252,12 +13561,12 @@ async def create_or_update( :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :param parameters: Parameters supplied to the Create Availability Set operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13283,7 +13592,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13303,9 +13612,9 @@ async def create_or_update( :type availability_set_name: str :param parameters: Parameters supplied to the Create Availability Set operation. Is either a AvailabilitySet type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet or IO[bytes] :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13319,7 +13628,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -13379,12 +13688,12 @@ async def update( :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :param parameters: Parameters supplied to the Update Availability Set operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySetUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySetUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13410,7 +13719,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13430,9 +13739,9 @@ async def update( :type availability_set_name: str :param parameters: Parameters supplied to the Update Availability Set operation. Is either a AvailabilitySetUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySetUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySetUpdate or IO[bytes] :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13446,7 +13755,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -13512,7 +13821,7 @@ async def delete(self, resource_group_name: str, availability_set_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_delete_request( @@ -13548,7 +13857,7 @@ async def get(self, resource_group_name: str, availability_set_name: str, **kwar :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13562,7 +13871,7 @@ async def get(self, resource_group_name: str, availability_set_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) _request = build_availability_sets_get_request( @@ -13604,13 +13913,13 @@ def list_by_subscription( :paramtype expand: str :return: An iterator like instance of either AvailabilitySet or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13678,19 +13987,484 @@ async def get_next(next_link=None): def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.AvailabilitySet"]: """Lists all availability sets in a resource group. - :param resource_group_name: The name of the resource group. Required. - :type resource_group_name: str - :return: An iterator like instance of either AvailabilitySet or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :return: An iterator like instance of either AvailabilitySet or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_availability_sets_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("AvailabilitySetListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_available_sizes( + self, resource_group_name: str, availability_set_name: str, **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineSize"]: + """Lists all available virtual machine sizes that can be used to create a new virtual machine in + an existing availability set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_availability_sets_list_available_sizes_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineSizeListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def start_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: _models.MigrateToVirtualMachineScaleSetInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def start_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def start_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Union[_models.MigrateToVirtualMachineScaleSetInput, IO[bytes]], + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a MigrateToVirtualMachineScaleSetInput type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + or IO[bytes] + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "MigrateToVirtualMachineScaleSetInput") + + _request = build_availability_sets_start_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace_async + async def cancel_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, resource_group_name: str, availability_set_name: str, **kwargs: Any + ) -> None: + """Cancel the migration operation on an Availability Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + async def validate_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: _models.MigrateToVirtualMachineScaleSetInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def validate_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def validate_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Union[_models.MigrateToVirtualMachineScaleSetInput, IO[bytes]], + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a MigrateToVirtualMachineScaleSetInput type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + or IO[bytes] + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "MigrateToVirtualMachineScaleSetInput") + + _request = build_availability_sets_validate_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + async def _convert_to_virtual_machine_scale_set_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[Union[_models.ConvertToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -13699,142 +14473,181 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_model } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_availability_sets_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _json = self._serialize.body(parameters, "ConvertToVirtualMachineScaleSetInput") else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request + _json = None - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailabilitySetListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) + _request = build_availability_sets_convert_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) - async def get_next(next_link=None): - _request = prepare_request(next_link) + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response + response = pipeline_response.http_response - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) - return pipeline_response + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - return AsyncItemPaged(get_next, extract_data) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - @distributed_trace - def list_available_sizes( - self, resource_group_name: str, availability_set_name: str, **kwargs: Any - ) -> AsyncIterable["_models.VirtualMachineSize"]: - """Lists all available virtual machine sizes that can be used to create a new virtual machine in - an existing availability set. + return deserialized # type: ignore + + @overload + async def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[_models.ConvertToVirtualMachineScaleSetInput] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str - :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :param parameters: Parameters supplied to the migrate operation on the availability set. + Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ConvertToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) + @overload + async def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Default value is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ - def prepare_request(next_link=None): - if not next_link: + @distributed_trace_async + async def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[Union[_models.ConvertToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. - _request = build_availability_sets_list_available_sizes_request( - resource_group_name=resource_group_name, - availability_set_name=availability_set_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a ConvertToVirtualMachineScaleSetInput type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ConvertToVirtualMachineScaleSetInput + or IO[bytes] + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._convert_to_virtual_machine_scale_set_initial( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - async def extract_data(pipeline_response): - deserialized = self._deserialize("VirtualMachineSizeListResult", pipeline_response) - list_of_elem = deserialized.value + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) + return cls(pipeline_response, None, {}) # type: ignore - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if polling is True: + polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore class ProximityPlacementGroupsOperations: @@ -13843,7 +14656,7 @@ class ProximityPlacementGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`proximity_placement_groups` attribute. """ @@ -13875,12 +14688,12 @@ async def create_or_update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Create Proximity Placement Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13907,7 +14720,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -13927,9 +14740,9 @@ async def create_or_update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Create Proximity Placement Group operation. Is either a ProximityPlacementGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup or IO[bytes] :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13943,7 +14756,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -14004,12 +14817,12 @@ async def update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Update Proximity Placement Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14036,7 +14849,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14056,10 +14869,10 @@ async def update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Update Proximity Placement Group operation. Is either a ProximityPlacementGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupUpdate or IO[bytes] :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14073,7 +14886,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -14139,7 +14952,7 @@ async def delete(self, resource_group_name: str, proximity_placement_group_name: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_delete_request( @@ -14185,7 +14998,7 @@ async def get( colocation status of all the resources in the proximity placement group. Default value is None. :paramtype include_colocation_status: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14199,7 +15012,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_get_request( @@ -14238,13 +15051,13 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.Proximit :return: An iterator like instance of either ProximityPlacementGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14318,13 +15131,13 @@ def list_by_resource_group( :return: An iterator like instance of either ProximityPlacementGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14395,7 +15208,7 @@ class DedicatedHostGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`dedicated_host_groups` attribute. """ @@ -14428,12 +15241,12 @@ async def create_or_update( :param host_group_name: The name of the dedicated host group. Required. :type host_group_name: str :param parameters: Parameters supplied to the Create Dedicated Host Group. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14461,7 +15274,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14483,9 +15296,9 @@ async def create_or_update( :type host_group_name: str :param parameters: Parameters supplied to the Create Dedicated Host Group. Is either a DedicatedHostGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup or IO[bytes] :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14499,7 +15312,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -14559,12 +15372,12 @@ async def update( :param host_group_name: The name of the dedicated host group. Required. :type host_group_name: str :param parameters: Parameters supplied to the Update Dedicated Host Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14590,7 +15403,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14610,9 +15423,9 @@ async def update( :type host_group_name: str :param parameters: Parameters supplied to the Update Dedicated Host Group operation. Is either a DedicatedHostGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupUpdate or IO[bytes] :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14626,7 +15439,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -14692,7 +15505,7 @@ async def delete(self, resource_group_name: str, host_group_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_delete_request( @@ -14736,11 +15549,11 @@ async def get( :type host_group_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is - not supported for dedicated host group. Known values are: "instanceView" and "userData". - Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + not supported for dedicated host group. Known values are: "instanceView", "userData", and + "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14754,7 +15567,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_get_request( @@ -14797,13 +15610,13 @@ def list_by_resource_group( :type resource_group_name: str :return: An iterator like instance of either DedicatedHostGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14874,13 +15687,13 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.Dedicate :return: An iterator like instance of either DedicatedHostGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -14950,7 +15763,7 @@ class DedicatedHostsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`dedicated_hosts` attribute. """ @@ -14983,7 +15796,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -15052,14 +15865,14 @@ async def begin_create_or_update( :param host_name: The name of the dedicated host . Required. :type host_name: str :param parameters: Parameters supplied to the Create Dedicated Host. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15090,7 +15903,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15113,17 +15926,17 @@ async def begin_create_or_update( :type host_name: str :param parameters: Parameters supplied to the Create Dedicated Host. Is either a DedicatedHost type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost or IO[bytes] :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -15187,7 +16000,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -15256,14 +16069,14 @@ async def begin_update( :param host_name: The name of the dedicated host . Required. :type host_name: str :param parameters: Parameters supplied to the Update Dedicated Host operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15294,7 +16107,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15317,17 +16130,17 @@ async def begin_update( :type host_name: str :param parameters: Parameters supplied to the Update Dedicated Host operation. Is either a DedicatedHostUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -15386,7 +16199,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_delete_request( @@ -15442,7 +16255,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15500,10 +16313,11 @@ async def get( :type host_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated - host. Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + host. Known values are: "instanceView", "userData", and "resiliencyView". Default value is + None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: DedicatedHost or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -15517,7 +16331,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) _request = build_dedicated_hosts_get_request( @@ -15563,13 +16377,13 @@ def list_by_host_group( :type host_group_name: str :return: An iterator like instance of either DedicatedHost or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15648,7 +16462,7 @@ async def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_restart_request( @@ -15707,7 +16521,7 @@ async def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15759,7 +16573,7 @@ async def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_redeploy_request( @@ -15822,7 +16636,7 @@ async def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15881,7 +16695,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15954,7 +16768,7 @@ class SshPublicKeysOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`ssh_public_keys` attribute. """ @@ -15976,13 +16790,13 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.SshPubli :return: An iterator like instance of either SshPublicKeyResource or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeysGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16057,13 +16871,13 @@ def list_by_resource_group( :return: An iterator like instance of either SshPublicKeyResource or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeysGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16144,12 +16958,12 @@ async def create( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to create the SSH public key. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16175,7 +16989,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16195,9 +17009,9 @@ async def create( :type ssh_public_key_name: str :param parameters: Parameters supplied to create the SSH public key. Is either a SshPublicKeyResource type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource or IO[bytes] :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16211,7 +17025,7 @@ async def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -16271,12 +17085,12 @@ async def update( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to update the SSH public key. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyUpdateResource + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyUpdateResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16302,7 +17116,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16322,10 +17136,10 @@ async def update( :type ssh_public_key_name: str :param parameters: Parameters supplied to update the SSH public key. Is either a SshPublicKeyUpdateResource type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyUpdateResource or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyUpdateResource or IO[bytes] :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16339,7 +17153,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -16405,7 +17219,7 @@ async def delete(self, resource_group_name: str, ssh_public_key_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_ssh_public_keys_delete_request( @@ -16443,7 +17257,7 @@ async def get( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16457,7 +17271,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) _request = build_ssh_public_keys_get_request( @@ -16507,12 +17321,12 @@ async def generate_key_pair( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to generate the SSH public key. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshGenerateKeyPairInputParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshGenerateKeyPairInputParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16540,7 +17354,7 @@ async def generate_key_pair( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16562,10 +17376,10 @@ async def generate_key_pair( :type ssh_public_key_name: str :param parameters: Parameters supplied to generate the SSH public key. Is either a SshGenerateKeyPairInputParameters type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshGenerateKeyPairInputParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshGenerateKeyPairInputParameters or IO[bytes] :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16579,7 +17393,7 @@ async def generate_key_pair( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyGenerateKeyPairResult] = kwargs.pop("cls", None) @@ -16632,7 +17446,7 @@ class ImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`images` attribute. """ @@ -16660,7 +17474,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -16725,12 +17539,12 @@ async def begin_create_or_update( :param image_name: The name of the image. Required. :type image_name: str :param parameters: Parameters supplied to the Create Image operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.Image + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.Image :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16756,7 +17570,7 @@ async def begin_create_or_update( Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16772,15 +17586,15 @@ async def begin_create_or_update( :type image_name: str :param parameters: Parameters supplied to the Create Image operation. Is either a Image type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.Image or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.Image or IO[bytes] :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -16842,7 +17656,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -16907,12 +17721,12 @@ async def begin_update( :param image_name: The name of the image. Required. :type image_name: str :param parameters: Parameters supplied to the Update Image operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ImageUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ImageUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16938,7 +17752,7 @@ async def begin_update( Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -16958,15 +17772,15 @@ async def begin_update( :type image_name: str :param parameters: Parameters supplied to the Update Image operation. Is either a ImageUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ImageUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ImageUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -17022,7 +17836,7 @@ async def _delete_initial(self, resource_group_name: str, image_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_images_delete_request( @@ -17073,7 +17887,7 @@ async def begin_delete(self, resource_group_name: str, image_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17123,7 +17937,7 @@ async def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: Image or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.Image + :rtype: ~azure.mgmt.compute.v2024_11_01.models.Image :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17137,7 +17951,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.Image] = kwargs.pop("cls", None) _request = build_images_get_request( @@ -17177,13 +17991,13 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :return: An iterator like instance of either Image or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ImageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17253,13 +18067,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Image"]: next page of Images. Do this till nextLink is null to fetch all the Images. :return: An iterator like instance of either Image or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ImageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17329,7 +18143,7 @@ class RestorePointCollectionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`restore_point_collections` attribute. """ @@ -17363,12 +18177,12 @@ async def create_or_update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Create or Update restore point collection operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17397,7 +18211,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17419,9 +18233,9 @@ async def create_or_update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Create or Update restore point collection operation. Is either a RestorePointCollection type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection or IO[bytes] :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17435,7 +18249,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -17496,12 +18310,12 @@ async def update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Update restore point collection operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17528,7 +18342,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17548,10 +18362,10 @@ async def update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Update restore point collection operation. Is either a RestorePointCollectionUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionUpdate or IO[bytes] :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17565,7 +18379,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -17622,7 +18436,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_point_collections_delete_request( @@ -17676,7 +18490,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17732,9 +18546,9 @@ async def get( server will return all contained restore points in the restorePointCollection. "restorePoints" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionExpandOptions + ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionExpandOptions :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17748,7 +18562,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) _request = build_restore_point_collections_get_request( @@ -17789,13 +18603,13 @@ def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_model :return: An iterator like instance of either RestorePointCollection or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17868,13 +18682,13 @@ def list_all(self, **kwargs: Any) -> AsyncIterable["_models.RestorePointCollecti :return: An iterator like instance of either RestorePointCollection or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -17944,7 +18758,7 @@ class RestorePointsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`restore_points` attribute. """ @@ -17977,7 +18791,7 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -18047,13 +18861,13 @@ async def begin_create( :param restore_point_name: The name of the restore point. Required. :type restore_point_name: str :param parameters: Parameters supplied to the Create restore point operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18084,7 +18898,7 @@ async def begin_create( :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18108,16 +18922,16 @@ async def begin_create( :type restore_point_name: str :param parameters: Parameters supplied to the Create restore point operation. Is either a RestorePoint type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint or IO[bytes] :return: An instance of AsyncLROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -18176,7 +18990,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_points_delete_request( @@ -18232,7 +19046,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -18290,9 +19104,9 @@ async def get( :type restore_point_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.RestorePointExpandOptions + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.RestorePointExpandOptions :return: RestorePoint or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18306,7 +19120,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) _request = build_restore_points_get_request( @@ -18346,7 +19160,7 @@ class CapacityReservationGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`capacity_reservation_groups` attribute. """ @@ -18379,12 +19193,12 @@ async def create_or_update( :param capacity_reservation_group_name: The name of the capacity reservation group. Required. :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Create capacity reservation Group. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18412,7 +19226,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18434,9 +19248,9 @@ async def create_or_update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Create capacity reservation Group. Is either a CapacityReservationGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup or IO[bytes] :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18450,7 +19264,7 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -18512,12 +19326,12 @@ async def update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Update capacity reservation Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18545,7 +19359,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -18566,10 +19380,10 @@ async def update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Update capacity reservation Group operation. Is either a CapacityReservationGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupUpdate or IO[bytes] :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18583,7 +19397,7 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -18652,7 +19466,7 @@ async def delete(self, resource_group_name: str, capacity_reservation_group_name _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_delete_request( @@ -18700,9 +19514,9 @@ async def get( platform and can change outside of control plane operations. "instanceView" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupInstanceViewTypes + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupInstanceViewTypes :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18716,7 +19530,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_get_request( @@ -18766,17 +19580,17 @@ def list_by_resource_group( associated to capacity reservation group in the response. Known values are: "virtualMachineScaleSetVMs/$ref" and "virtualMachines/$ref". Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetCapacityReservationGroups :return: An iterator like instance of either CapacityReservationGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18857,7 +19671,7 @@ def list_by_subscription( associated to capacity reservation group in the response. Known values are: "virtualMachineScaleSetVMs/$ref" and "virtualMachines/$ref". Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetCapacityReservationGroups :keyword resource_ids_only: The query option to fetch Capacity Reservation Group Resource Ids. :code:`
` 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription. :code:`
` 'SharedWithSubscription' enables @@ -18866,17 +19680,17 @@ def list_by_subscription( group resources shared with the subscription and created in the subscription. Known values are: "CreatedInSubscription", "SharedWithSubscription", and "All". Default value is None. :paramtype resource_ids_only: str or - ~azure.mgmt.compute.v2024_07_01.models.ResourceIdOptionsForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ResourceIdOptionsForGetCapacityReservationGroups :return: An iterator like instance of either CapacityReservationGroup or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -18948,7 +19762,7 @@ class CapacityReservationsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`capacity_reservations` attribute. """ @@ -18981,7 +19795,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19052,14 +19866,14 @@ async def begin_create_or_update( :param capacity_reservation_name: The name of the capacity reservation. Required. :type capacity_reservation_name: str :param parameters: Parameters supplied to the Create capacity reservation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19092,7 +19906,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19117,17 +19931,17 @@ async def begin_create_or_update( :type capacity_reservation_name: str :param parameters: Parameters supplied to the Create capacity reservation. Is either a CapacityReservation type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation or IO[bytes] :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -19191,7 +20005,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19260,14 +20074,14 @@ async def begin_update( :param capacity_reservation_name: The name of the capacity reservation. Required. :type capacity_reservation_name: str :param parameters: Parameters supplied to the Update capacity reservation operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19298,7 +20112,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19321,17 +20135,17 @@ async def begin_update( :type capacity_reservation_name: str :param parameters: Parameters supplied to the Update capacity reservation operation. Is either a CapacityReservationUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -19394,7 +20208,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_capacity_reservations_delete_request( @@ -19456,7 +20270,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -19516,9 +20330,9 @@ async def get( snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. "instanceView" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationInstanceViewTypes + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationInstanceViewTypes :return: CapacityReservation or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19532,7 +20346,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) _request = build_capacity_reservations_get_request( @@ -19578,13 +20392,13 @@ def list_by_capacity_reservation_group( :type capacity_reservation_group_name: str :return: An iterator like instance of either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -19656,7 +20470,7 @@ class LogAnalyticsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`log_analytics` attribute. """ @@ -19684,7 +20498,7 @@ async def _export_request_rate_by_interval_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19747,14 +20561,14 @@ async def begin_export_request_rate_by_interval( :type location: str :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RequestRateByIntervalInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RequestRateByIntervalInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19776,7 +20590,7 @@ async def begin_export_request_rate_by_interval( :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19791,18 +20605,18 @@ async def begin_export_request_rate_by_interval( :type location: str :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. Is either a RequestRateByIntervalInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RequestRateByIntervalInput or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RequestRateByIntervalInput or IO[bytes] :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -19862,7 +20676,7 @@ async def _export_throttled_requests_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -19924,14 +20738,14 @@ async def begin_export_throttled_requests( :param location: The location upon which virtual-machine-sizes is queried. Required. :type location: str :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ThrottledRequestsInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ThrottledRequestsInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19952,7 +20766,7 @@ async def begin_export_throttled_requests( :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19967,17 +20781,17 @@ async def begin_export_throttled_requests( :type location: str :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. Is either a ThrottledRequestsInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ThrottledRequestsInput or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ThrottledRequestsInput or IO[bytes] :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20030,7 +20844,7 @@ class VirtualMachineRunCommandsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_run_commands` attribute. """ @@ -20053,13 +20867,13 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.RunComman :return: An iterator like instance of either RunCommandDocumentBase or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.RunCommandDocumentBase] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.RunCommandDocumentBase] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RunCommandListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20132,7 +20946,7 @@ async def get(self, location: str, command_id: str, **kwargs: Any) -> _models.Ru :param command_id: The command id. Required. :type command_id: str :return: RunCommandDocument or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RunCommandDocument + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RunCommandDocument :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20146,7 +20960,7 @@ async def get(self, location: str, command_id: str, **kwargs: Any) -> _models.Ru _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_request( @@ -20196,7 +21010,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -20267,14 +21081,14 @@ async def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20307,7 +21121,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20331,17 +21145,17 @@ async def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand or IO[bytes] + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20405,7 +21219,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -20476,14 +21290,14 @@ async def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20516,7 +21330,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20540,18 +21354,18 @@ async def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate or + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -20610,7 +21424,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_delete_request( @@ -20667,7 +21481,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -20726,7 +21540,7 @@ async def get_by_virtual_machine( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineRunCommand or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20740,7 +21554,7 @@ async def get_by_virtual_machine( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_by_virtual_machine_request( @@ -20788,13 +21602,13 @@ def list_by_virtual_machine( :return: An iterator like instance of either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommandsListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20867,7 +21681,7 @@ class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=name-too **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.aio.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.aio.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vm_run_commands` attribute. """ @@ -20901,7 +21715,7 @@ async def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -20975,14 +21789,14 @@ async def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21017,7 +21831,7 @@ async def begin_create_or_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21043,17 +21857,17 @@ async def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand or IO[bytes] + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -21119,7 +21933,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -21193,14 +22007,14 @@ async def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21235,7 +22049,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21261,18 +22075,18 @@ async def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate or + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate or IO[bytes] :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -21332,7 +22146,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( @@ -21391,7 +22205,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21454,7 +22268,7 @@ async def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineRunCommand or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -21468,7 +22282,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_run_commands_get_request( @@ -21525,13 +22339,13 @@ def list( :return: An iterator like instance of either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommandsListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/_patch.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/_patch.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/aio/operations/_patch.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/aio/operations/_patch.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/__init__.py similarity index 96% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/__init__.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/__init__.py index 671f80ca3ffc..3ca60bcc7b9a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/__init__.py @@ -25,6 +25,7 @@ AutomaticOSUpgradePolicy, AutomaticOSUpgradeProperties, AutomaticRepairsPolicy, + AutomaticZoneRebalancingPolicy, AvailabilitySet, AvailabilitySetListResult, AvailabilitySetUpdate, @@ -45,6 +46,7 @@ CapacityReservationUtilization, ComputeOperationListResult, ComputeOperationValue, + ConvertToVirtualMachineScaleSetInput, DataDisk, DataDiskImage, DataDisksToAttach, @@ -62,6 +64,7 @@ DedicatedHostListResult, DedicatedHostSizeListResult, DedicatedHostUpdate, + DefaultVirtualMachineScaleSetInfo, DiagnosticsProfile, DiffDiskSettings, DisallowedConfiguration, @@ -75,6 +78,7 @@ EventGridAndResourceGraph, ExtendedLocation, HardwareProfile, + HostEndpointSettings, Image, ImageDataDisk, ImageDeprecationStatus, @@ -99,6 +103,8 @@ LogAnalyticsOutput, MaintenanceRedeployStatus, ManagedDiskParameters, + MigrateToVirtualMachineScaleSetInput, + MigrateVMToVirtualMachineScaleSetInput, NetworkInterfaceReference, NetworkProfile, OSDisk, @@ -110,6 +116,7 @@ OrchestrationServiceSummary, PatchInstallationDetail, PatchSettings, + Placement, Plan, PriorityMixPolicy, ProximityPlacementGroup, @@ -213,6 +220,7 @@ VirtualMachineImage, VirtualMachineImageFeature, VirtualMachineImageResource, + VirtualMachineImagesWithPropertiesListResult, VirtualMachineInstallPatchesParameters, VirtualMachineInstallPatchesResult, VirtualMachineInstanceView, @@ -247,6 +255,7 @@ VirtualMachineScaleSetListSkusResult, VirtualMachineScaleSetListWithLinkResult, VirtualMachineScaleSetManagedDiskParameters, + VirtualMachineScaleSetMigrationInfo, VirtualMachineScaleSetNetworkConfiguration, VirtualMachineScaleSetNetworkConfigurationDnsSettings, VirtualMachineScaleSetNetworkProfile, @@ -312,6 +321,7 @@ DiskDetachOptionTypes, DomainNameLabelScopeTypes, ExecutionState, + Expand, ExpandTypeForListVMs, ExpandTypesForGetCapacityReservationGroups, ExpandTypesForGetVMScaleSets, @@ -330,6 +340,7 @@ LinuxVMGuestPatchMode, MaintenanceOperationResultCodeTypes, Mode, + Modes, NetworkApiVersion, NetworkInterfaceAuxiliaryMode, NetworkInterfaceAuxiliarySku, @@ -348,7 +359,10 @@ PublicIPAddressSkuName, PublicIPAddressSkuTier, PublicIPAllocationMethod, + RebalanceBehavior, + RebalanceStrategy, RepairAction, + ResilientVMDeletionStatus, ResourceIdOptionsForGetCapacityReservationGroups, ResourceIdentityType, RestorePointCollectionExpandOptions, @@ -380,6 +394,7 @@ WindowsVMGuestPatchAutomaticByPlatformRebootSetting, WindowsVMGuestPatchMode, ZonalPlatformFaultDomainAlignMode, + ZonePlacementPolicyType, ) from ._patch import __all__ as _patch_all from ._patch import * @@ -397,6 +412,7 @@ "AutomaticOSUpgradePolicy", "AutomaticOSUpgradeProperties", "AutomaticRepairsPolicy", + "AutomaticZoneRebalancingPolicy", "AvailabilitySet", "AvailabilitySetListResult", "AvailabilitySetUpdate", @@ -417,6 +433,7 @@ "CapacityReservationUtilization", "ComputeOperationListResult", "ComputeOperationValue", + "ConvertToVirtualMachineScaleSetInput", "DataDisk", "DataDiskImage", "DataDisksToAttach", @@ -434,6 +451,7 @@ "DedicatedHostListResult", "DedicatedHostSizeListResult", "DedicatedHostUpdate", + "DefaultVirtualMachineScaleSetInfo", "DiagnosticsProfile", "DiffDiskSettings", "DisallowedConfiguration", @@ -447,6 +465,7 @@ "EventGridAndResourceGraph", "ExtendedLocation", "HardwareProfile", + "HostEndpointSettings", "Image", "ImageDataDisk", "ImageDeprecationStatus", @@ -471,6 +490,8 @@ "LogAnalyticsOutput", "MaintenanceRedeployStatus", "ManagedDiskParameters", + "MigrateToVirtualMachineScaleSetInput", + "MigrateVMToVirtualMachineScaleSetInput", "NetworkInterfaceReference", "NetworkProfile", "OSDisk", @@ -482,6 +503,7 @@ "OrchestrationServiceSummary", "PatchInstallationDetail", "PatchSettings", + "Placement", "Plan", "PriorityMixPolicy", "ProximityPlacementGroup", @@ -585,6 +607,7 @@ "VirtualMachineImage", "VirtualMachineImageFeature", "VirtualMachineImageResource", + "VirtualMachineImagesWithPropertiesListResult", "VirtualMachineInstallPatchesParameters", "VirtualMachineInstallPatchesResult", "VirtualMachineInstanceView", @@ -619,6 +642,7 @@ "VirtualMachineScaleSetListSkusResult", "VirtualMachineScaleSetListWithLinkResult", "VirtualMachineScaleSetManagedDiskParameters", + "VirtualMachineScaleSetMigrationInfo", "VirtualMachineScaleSetNetworkConfiguration", "VirtualMachineScaleSetNetworkConfigurationDnsSettings", "VirtualMachineScaleSetNetworkProfile", @@ -681,6 +705,7 @@ "DiskDetachOptionTypes", "DomainNameLabelScopeTypes", "ExecutionState", + "Expand", "ExpandTypeForListVMs", "ExpandTypesForGetCapacityReservationGroups", "ExpandTypesForGetVMScaleSets", @@ -699,6 +724,7 @@ "LinuxVMGuestPatchMode", "MaintenanceOperationResultCodeTypes", "Mode", + "Modes", "NetworkApiVersion", "NetworkInterfaceAuxiliaryMode", "NetworkInterfaceAuxiliarySku", @@ -717,7 +743,10 @@ "PublicIPAddressSkuName", "PublicIPAddressSkuTier", "PublicIPAllocationMethod", + "RebalanceBehavior", + "RebalanceStrategy", "RepairAction", + "ResilientVMDeletionStatus", "ResourceIdOptionsForGetCapacityReservationGroups", "ResourceIdentityType", "RestorePointCollectionExpandOptions", @@ -749,6 +778,7 @@ "WindowsVMGuestPatchAutomaticByPlatformRebootSetting", "WindowsVMGuestPatchMode", "ZonalPlatformFaultDomainAlignMode", + "ZonePlacementPolicyType", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_compute_management_client_enums.py similarity index 94% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_compute_management_client_enums.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_compute_management_client_enums.py index eb5c4c5f024e..3720d04833a5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_compute_management_client_enums.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -17,6 +18,7 @@ class AllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): LOWEST_PRICE = "LowestPrice" CAPACITY_OPTIMIZED = "CapacityOptimized" + PRIORITIZED = "Prioritized" class AlternativeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -197,6 +199,12 @@ class ExecutionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): CANCELED = "Canceled" +class Expand(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Expand.""" + + PROPERTIES = "Properties" + + class ExpandTypeForListVMs(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ExpandTypeForListVMs.""" @@ -262,6 +270,7 @@ class InstanceViewTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): INSTANCE_VIEW = "instanceView" USER_DATA = "userData" + RESILIENCY_VIEW = "resiliencyView" class IntervalInMins(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -337,22 +346,33 @@ class MaintenanceOperationResultCodeTypes(str, Enum, metaclass=CaseInsensitiveEn class Mode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will - start to audit or monitor but not enforce access control over requests to host endpoints in - Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce - mode. + """Specifies the mode that ProxyAgent will execute on. Warning: this property has been deprecated, + please specify 'mode' under particular hostendpoint setting. """ AUDIT = "Audit" ENFORCE = "Enforce" +class Modes(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the execution mode. In Audit mode, the system acts as if it is enforcing the access + control policy, including emitting access denial entries in the logs but it does not actually + deny any requests to host endpoints. In Enforce mode, the system will enforce the access + control and it is the recommended mode of operation. + """ + + AUDIT = "Audit" + ENFORCE = "Enforce" + DISABLED = "Disabled" + + class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): """specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations. """ TWO_THOUSAND_TWENTY11_01 = "2020-11-01" + TWO_THOUSAND_TWENTY_TWO11_01 = "2022-11-01" class NetworkInterfaceAuxiliaryMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -496,6 +516,22 @@ class PublicIPAllocationMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): STATIC = "Static" +class RebalanceBehavior(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of rebalance behavior that will be used for recreating virtual machines in the scale set + across availability zones. Default and only supported value for now is CreateBeforeDelete. + """ + + CREATE_BEFORE_DELETE = "CreateBeforeDelete" + + +class RebalanceStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of rebalance strategy that will be used for rebalancing virtual machines in the scale set + across availability zones. Default and only supported value for now is Recreate. + """ + + RECREATE = "Recreate" + + class RepairAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. @@ -506,6 +542,15 @@ class RepairAction(str, Enum, metaclass=CaseInsensitiveEnumMeta): REIMAGE = "Reimage" +class ResilientVMDeletionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the resilient VM deletion status for the virtual machine.""" + + ENABLED = "Enabled" + DISABLED = "Disabled" + IN_PROGRESS = "InProgress" + FAILED = "Failed" + + class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned @@ -982,3 +1027,12 @@ class ZonalPlatformFaultDomainAlignMode(str, Enum, metaclass=CaseInsensitiveEnum ALIGNED = "Aligned" UNALIGNED = "Unaligned" + + +class ZonePlacementPolicyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Specifies the policy for virtual machine's placement in availability zone. Possible values are: + **Any** - An availability zone will be automatically picked by system as part of virtual + machine creation. + """ + + ANY = "Any" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_models_py3.py similarity index 90% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_models_py3.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_models_py3.py index ecc47cd12635..912c010949ad 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_models_py3.py @@ -72,7 +72,7 @@ class AdditionalUnattendContent(_serialization.Model): :ivar setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Known values are: "AutoLogon" and "FirstLogonCommands". - :vartype setting_name: str or ~azure.mgmt.compute.v2024_07_01.models.SettingNames + :vartype setting_name: str or ~azure.mgmt.compute.v2024_11_01.models.SettingNames :ivar content: Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. @@ -105,7 +105,7 @@ def __init__( :keyword setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Known values are: "AutoLogon" and "FirstLogonCommands". - :paramtype setting_name: str or ~azure.mgmt.compute.v2024_07_01.models.SettingNames + :paramtype setting_name: str or ~azure.mgmt.compute.v2024_11_01.models.SettingNames :keyword content: Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted. @@ -124,7 +124,7 @@ class AlternativeOption(_serialization.Model): :ivar type: Describes the type of the alternative option. Known values are: "None", "Offer", and "Plan". - :vartype type: str or ~azure.mgmt.compute.v2024_07_01.models.AlternativeType + :vartype type: str or ~azure.mgmt.compute.v2024_11_01.models.AlternativeType :ivar value: Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan. :vartype value: str @@ -145,7 +145,7 @@ def __init__( """ :keyword type: Describes the type of the alternative option. Known values are: "None", "Offer", and "Plan". - :paramtype type: str or ~azure.mgmt.compute.v2024_07_01.models.AlternativeType + :paramtype type: str or ~azure.mgmt.compute.v2024_11_01.models.AlternativeType :keyword value: Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan. :paramtype value: str @@ -181,9 +181,9 @@ class ApiError(_serialization.Model): """Api error. :ivar details: The Api error details. - :vartype details: list[~azure.mgmt.compute.v2024_07_01.models.ApiErrorBase] + :vartype details: list[~azure.mgmt.compute.v2024_11_01.models.ApiErrorBase] :ivar innererror: The Api inner error. - :vartype innererror: ~azure.mgmt.compute.v2024_07_01.models.InnerError + :vartype innererror: ~azure.mgmt.compute.v2024_11_01.models.InnerError :ivar code: The error code. :vartype code: str :ivar target: The target of the particular error. @@ -212,9 +212,9 @@ def __init__( ) -> None: """ :keyword details: The Api error details. - :paramtype details: list[~azure.mgmt.compute.v2024_07_01.models.ApiErrorBase] + :paramtype details: list[~azure.mgmt.compute.v2024_11_01.models.ApiErrorBase] :keyword innererror: The Api inner error. - :paramtype innererror: ~azure.mgmt.compute.v2024_07_01.models.InnerError + :paramtype innererror: ~azure.mgmt.compute.v2024_11_01.models.InnerError :keyword code: The error code. :paramtype code: str :keyword target: The target of the particular error. @@ -270,7 +270,7 @@ class ApplicationProfile(_serialization.Model): :ivar gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. :vartype gallery_applications: - list[~azure.mgmt.compute.v2024_07_01.models.VMGalleryApplication] + list[~azure.mgmt.compute.v2024_11_01.models.VMGalleryApplication] """ _attribute_map = { @@ -284,7 +284,7 @@ def __init__( :keyword gallery_applications: Specifies the gallery applications that should be made available to the VM/VMSS. :paramtype gallery_applications: - list[~azure.mgmt.compute.v2024_07_01.models.VMGalleryApplication] + list[~azure.mgmt.compute.v2024_11_01.models.VMGalleryApplication] """ super().__init__(**kwargs) self.gallery_applications = gallery_applications @@ -294,9 +294,9 @@ class AttachDetachDataDisksRequest(_serialization.Model): """Specifies the input for attaching and detaching a list of managed data disks. :ivar data_disks_to_attach: The list of managed data disks to be attached. - :vartype data_disks_to_attach: list[~azure.mgmt.compute.v2024_07_01.models.DataDisksToAttach] + :vartype data_disks_to_attach: list[~azure.mgmt.compute.v2024_11_01.models.DataDisksToAttach] :ivar data_disks_to_detach: The list of managed data disks to be detached. - :vartype data_disks_to_detach: list[~azure.mgmt.compute.v2024_07_01.models.DataDisksToDetach] + :vartype data_disks_to_detach: list[~azure.mgmt.compute.v2024_11_01.models.DataDisksToDetach] """ _validation = { @@ -318,9 +318,9 @@ def __init__( ) -> None: """ :keyword data_disks_to_attach: The list of managed data disks to be attached. - :paramtype data_disks_to_attach: list[~azure.mgmt.compute.v2024_07_01.models.DataDisksToAttach] + :paramtype data_disks_to_attach: list[~azure.mgmt.compute.v2024_11_01.models.DataDisksToAttach] :keyword data_disks_to_detach: The list of managed data disks to be detached. - :paramtype data_disks_to_detach: list[~azure.mgmt.compute.v2024_07_01.models.DataDisksToDetach] + :paramtype data_disks_to_detach: list[~azure.mgmt.compute.v2024_11_01.models.DataDisksToDetach] """ super().__init__(**kwargs) self.data_disks_to_attach = data_disks_to_attach @@ -438,7 +438,7 @@ class AutomaticRepairsPolicy(_serialization.Model): :ivar repair_action: Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. Known values are: "Replace", "Restart", and "Reimage". - :vartype repair_action: str or ~azure.mgmt.compute.v2024_07_01.models.RepairAction + :vartype repair_action: str or ~azure.mgmt.compute.v2024_11_01.models.RepairAction """ _attribute_map = { @@ -468,7 +468,7 @@ def __init__( :keyword repair_action: Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace. Known values are: "Replace", "Restart", and "Reimage". - :paramtype repair_action: str or ~azure.mgmt.compute.v2024_07_01.models.RepairAction + :paramtype repair_action: str or ~azure.mgmt.compute.v2024_11_01.models.RepairAction """ super().__init__(**kwargs) self.enabled = enabled @@ -476,6 +476,55 @@ def __init__( self.repair_action = repair_action +class AutomaticZoneRebalancingPolicy(_serialization.Model): + """The configuration parameters used while performing automatic AZ balancing. + + :ivar enabled: Specifies whether Automatic AZ Balancing should be enabled on the virtual + machine scale set. The default value is false. + :vartype enabled: bool + :ivar rebalance_strategy: Type of rebalance strategy that will be used for rebalancing virtual + machines in the scale set across availability zones. Default and only supported value for now + is Recreate. "Recreate" + :vartype rebalance_strategy: str or ~azure.mgmt.compute.v2024_11_01.models.RebalanceStrategy + :ivar rebalance_behavior: Type of rebalance behavior that will be used for recreating virtual + machines in the scale set across availability zones. Default and only supported value for now + is CreateBeforeDelete. "CreateBeforeDelete" + :vartype rebalance_behavior: str or ~azure.mgmt.compute.v2024_11_01.models.RebalanceBehavior + """ + + _attribute_map = { + "enabled": {"key": "enabled", "type": "bool"}, + "rebalance_strategy": {"key": "rebalanceStrategy", "type": "str"}, + "rebalance_behavior": {"key": "rebalanceBehavior", "type": "str"}, + } + + def __init__( + self, + *, + enabled: Optional[bool] = None, + rebalance_strategy: Optional[Union[str, "_models.RebalanceStrategy"]] = None, + rebalance_behavior: Optional[Union[str, "_models.RebalanceBehavior"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword enabled: Specifies whether Automatic AZ Balancing should be enabled on the virtual + machine scale set. The default value is false. + :paramtype enabled: bool + :keyword rebalance_strategy: Type of rebalance strategy that will be used for rebalancing + virtual machines in the scale set across availability zones. Default and only supported value + for now is Recreate. "Recreate" + :paramtype rebalance_strategy: str or ~azure.mgmt.compute.v2024_11_01.models.RebalanceStrategy + :keyword rebalance_behavior: Type of rebalance behavior that will be used for recreating + virtual machines in the scale set across availability zones. Default and only supported value + for now is CreateBeforeDelete. "CreateBeforeDelete" + :paramtype rebalance_behavior: str or ~azure.mgmt.compute.v2024_11_01.models.RebalanceBehavior + """ + super().__init__(**kwargs) + self.enabled = enabled + self.rebalance_strategy = rebalance_strategy + self.rebalance_behavior = rebalance_behavior + + class Resource(_serialization.Model): """The Resource model definition. @@ -554,22 +603,26 @@ class AvailabilitySet(Resource): AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar platform_update_domain_count: Update Domain count. :vartype platform_update_domain_count: int :ivar platform_fault_domain_count: Fault Domain count. :vartype platform_fault_domain_count: int :ivar virtual_machines: A list of references to all virtual machines in the availability set. - :vartype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar proximity_placement_group: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. - :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy + :ivar virtual_machine_scale_set_migration_info: Describes the migration properties on the + Availability Set. + :vartype virtual_machine_scale_set_migration_info: + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetMigrationInfo """ _validation = { @@ -578,6 +631,7 @@ class AvailabilitySet(Resource): "type": {"readonly": True}, "location": {"required": True}, "statuses": {"readonly": True}, + "virtual_machine_scale_set_migration_info": {"readonly": True}, } _attribute_map = { @@ -593,6 +647,10 @@ class AvailabilitySet(Resource): "proximity_placement_group": {"key": "properties.proximityPlacementGroup", "type": "SubResource"}, "statuses": {"key": "properties.statuses", "type": "[InstanceViewStatus]"}, "scheduled_events_policy": {"key": "properties.scheduledEventsPolicy", "type": "ScheduledEventsPolicy"}, + "virtual_machine_scale_set_migration_info": { + "key": "properties.virtualMachineScaleSetMigrationInfo", + "type": "VirtualMachineScaleSetMigrationInfo", + }, } def __init__( @@ -617,22 +675,22 @@ def __init__( AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword platform_update_domain_count: Update Domain count. :paramtype platform_update_domain_count: int :keyword platform_fault_domain_count: Fault Domain count. :paramtype platform_fault_domain_count: int :keyword virtual_machines: A list of references to all virtual machines in the availability set. - :paramtype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :paramtype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword proximity_placement_group: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. :paramtype scheduled_events_policy: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy """ super().__init__(location=location, tags=tags, **kwargs) self.sku = sku @@ -642,6 +700,7 @@ def __init__( self.proximity_placement_group = proximity_placement_group self.statuses = None self.scheduled_events_policy = scheduled_events_policy + self.virtual_machine_scale_set_migration_info = None class AvailabilitySetListResult(_serialization.Model): @@ -650,7 +709,7 @@ class AvailabilitySetListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of availability sets. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] :ivar next_link: The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets. :vartype next_link: str @@ -670,7 +729,7 @@ def __init__( ) -> None: """ :keyword value: The list of availability sets. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] :keyword next_link: The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets. :paramtype next_link: str @@ -709,26 +768,31 @@ class AvailabilitySetUpdate(UpdateResource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar sku: Sku of the availability set. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar platform_update_domain_count: Update Domain count. :vartype platform_update_domain_count: int :ivar platform_fault_domain_count: Fault Domain count. :vartype platform_fault_domain_count: int :ivar virtual_machines: A list of references to all virtual machines in the availability set. - :vartype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar proximity_placement_group: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. - :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy + :ivar virtual_machine_scale_set_migration_info: Describes the migration properties on the + Availability Set. + :vartype virtual_machine_scale_set_migration_info: + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetMigrationInfo """ _validation = { "statuses": {"readonly": True}, + "virtual_machine_scale_set_migration_info": {"readonly": True}, } _attribute_map = { @@ -740,6 +804,10 @@ class AvailabilitySetUpdate(UpdateResource): "proximity_placement_group": {"key": "properties.proximityPlacementGroup", "type": "SubResource"}, "statuses": {"key": "properties.statuses", "type": "[InstanceViewStatus]"}, "scheduled_events_policy": {"key": "properties.scheduledEventsPolicy", "type": "ScheduledEventsPolicy"}, + "virtual_machine_scale_set_migration_info": { + "key": "properties.virtualMachineScaleSetMigrationInfo", + "type": "VirtualMachineScaleSetMigrationInfo", + }, } def __init__( @@ -758,22 +826,22 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword sku: Sku of the availability set. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword platform_update_domain_count: Update Domain count. :paramtype platform_update_domain_count: int :keyword platform_fault_domain_count: Fault Domain count. :paramtype platform_fault_domain_count: int :keyword virtual_machines: A list of references to all virtual machines in the availability set. - :paramtype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :paramtype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword proximity_placement_group: Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set. :paramtype scheduled_events_policy: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy """ super().__init__(tags=tags, **kwargs) self.sku = sku @@ -783,6 +851,7 @@ def __init__( self.proximity_placement_group = proximity_placement_group self.statuses = None self.scheduled_events_policy = scheduled_events_policy + self.virtual_machine_scale_set_migration_info = None class AvailablePatchSummary(_serialization.Model): @@ -794,7 +863,7 @@ class AvailablePatchSummary(_serialization.Model): until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.compute.v2024_07_01.models.PatchOperationStatus + :vartype status: str or ~azure.mgmt.compute.v2024_11_01.models.PatchOperationStatus :ivar assessment_activity_id: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. :vartype assessment_activity_id: str @@ -813,7 +882,7 @@ class AvailablePatchSummary(_serialization.Model): :vartype last_modified_time: ~datetime.datetime :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -939,7 +1008,7 @@ class BootDiagnosticsInstanceView(_serialization.Model): :vartype serial_console_log_blob_uri: str :ivar status: The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics. - :vartype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ _validation = { @@ -984,7 +1053,7 @@ class CapacityReservation(Resource): 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. Required. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar zones: Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation @@ -1002,13 +1071,13 @@ class CapacityReservation(Resource): :ivar virtual_machines_associated: A list of all virtual machine resource ids that are associated with the capacity reservation. :vartype virtual_machines_associated: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar provisioning_time: The date time when the capacity reservation was last updated. :vartype provisioning_time: ~datetime.datetime :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The Capacity reservation instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationInstanceView :ivar time_created: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -1065,7 +1134,7 @@ def __init__( 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. Required. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword zones: Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the @@ -1113,22 +1182,22 @@ class CapacityReservationGroup(Resource): :ivar capacity_reservations: A list of all capacity reservation resource ids that belong to capacity reservation group. :vartype capacity_reservations: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar virtual_machines_associated: A list of references to all virtual machines associated to the capacity reservation group. :vartype virtual_machines_associated: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar instance_view: The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupInstanceView + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupInstanceView :ivar sharing_profile: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :vartype sharing_profile: ~azure.mgmt.compute.v2024_07_01.models.ResourceSharingProfile + :vartype sharing_profile: ~azure.mgmt.compute.v2024_11_01.models.ResourceSharingProfile """ _validation = { @@ -1179,7 +1248,7 @@ def __init__( AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :paramtype sharing_profile: ~azure.mgmt.compute.v2024_07_01.models.ResourceSharingProfile + :paramtype sharing_profile: ~azure.mgmt.compute.v2024_11_01.models.ResourceSharingProfile """ super().__init__(location=location, tags=tags, **kwargs) self.zones = zones @@ -1197,12 +1266,12 @@ class CapacityReservationGroupInstanceView(_serialization.Model): :ivar capacity_reservations: List of instance view of the capacity reservations under the capacity reservation group. :vartype capacity_reservations: - list[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationInstanceViewWithName] + list[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationInstanceViewWithName] :ivar shared_subscription_ids: List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. :vartype shared_subscription_ids: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] """ _validation = { @@ -1228,7 +1297,7 @@ class CapacityReservationGroupListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of capacity reservation groups. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :ivar next_link: The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups. :vartype next_link: str @@ -1248,7 +1317,7 @@ def __init__( ) -> None: """ :keyword value: The list of capacity reservation groups. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :keyword next_link: The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups. :paramtype next_link: str @@ -1268,22 +1337,22 @@ class CapacityReservationGroupUpdate(UpdateResource): :ivar capacity_reservations: A list of all capacity reservation resource ids that belong to capacity reservation group. :vartype capacity_reservations: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar virtual_machines_associated: A list of references to all virtual machines associated to the capacity reservation group. :vartype virtual_machines_associated: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar instance_view: The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupInstanceView + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupInstanceView :ivar sharing_profile: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :vartype sharing_profile: ~azure.mgmt.compute.v2024_07_01.models.ResourceSharingProfile + :vartype sharing_profile: ~azure.mgmt.compute.v2024_11_01.models.ResourceSharingProfile """ _validation = { @@ -1316,7 +1385,7 @@ def __init__( AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :paramtype sharing_profile: ~azure.mgmt.compute.v2024_07_01.models.ResourceSharingProfile + :paramtype sharing_profile: ~azure.mgmt.compute.v2024_11_01.models.ResourceSharingProfile """ super().__init__(tags=tags, **kwargs) self.capacity_reservations = None @@ -1332,9 +1401,9 @@ class CapacityReservationInstanceView(_serialization.Model): :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUtilization + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUtilization :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -1352,9 +1421,9 @@ def __init__( """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUtilization + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUtilization :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.utilization_info = utilization_info @@ -1369,9 +1438,9 @@ class CapacityReservationInstanceViewWithName(CapacityReservationInstanceView): :ivar utilization_info: Unutilized capacity of the capacity reservation. :vartype utilization_info: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUtilization + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUtilization :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar name: The name of the capacity reservation. :vartype name: str """ @@ -1396,9 +1465,9 @@ def __init__( """ :keyword utilization_info: Unutilized capacity of the capacity reservation. :paramtype utilization_info: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUtilization + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUtilization :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(utilization_info=utilization_info, statuses=statuses, **kwargs) self.name = None @@ -1410,7 +1479,7 @@ class CapacityReservationListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of capacity reservations. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :ivar next_link: The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity reservations. :vartype next_link: str @@ -1430,7 +1499,7 @@ def __init__( ) -> None: """ :keyword value: The list of capacity reservations. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :keyword next_link: The URI to fetch the next page of capacity reservations. Call ListNext() with this URI to fetch the next page of capacity reservations. :paramtype next_link: str @@ -1447,7 +1516,7 @@ class CapacityReservationProfile(_serialization.Model): should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details. - :vartype capacity_reservation_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype capacity_reservation_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ _attribute_map = { @@ -1460,7 +1529,7 @@ def __init__(self, *, capacity_reservation_group: Optional["_models.SubResource" should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details. - :paramtype capacity_reservation_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype capacity_reservation_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ super().__init__(**kwargs) self.capacity_reservation_group = capacity_reservation_group @@ -1479,7 +1548,7 @@ class CapacityReservationUpdate(UpdateResource): 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar reservation_id: A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. :vartype reservation_id: str @@ -1491,13 +1560,13 @@ class CapacityReservationUpdate(UpdateResource): :ivar virtual_machines_associated: A list of all virtual machine resource ids that are associated with the capacity reservation. :vartype virtual_machines_associated: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar provisioning_time: The date time when the capacity reservation was last updated. :vartype provisioning_time: ~datetime.datetime :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The Capacity reservation instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationInstanceView :ivar time_created: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -1536,7 +1605,7 @@ def __init__( 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku """ super().__init__(tags=tags, **kwargs) self.sku = sku @@ -1561,7 +1630,7 @@ class CapacityReservationUtilization(_serialization.Model): :ivar virtual_machines_allocated: A list of all virtual machines resource ids allocated against the capacity reservation. :vartype virtual_machines_allocated: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] """ _validation = { @@ -1587,7 +1656,7 @@ class ComputeOperationListResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: The list of compute operations. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.ComputeOperationValue] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.ComputeOperationValue] """ _validation = { @@ -1652,6 +1721,28 @@ def __init__(self, **kwargs: Any) -> None: self.provider = None +class ConvertToVirtualMachineScaleSetInput(_serialization.Model): + """Describes the Virtual Machine Scale Set to convert from Availability Set. + + :ivar virtual_machine_scale_set_name: Specifies information about the Virtual Machine Scale Set + that the Availability Set should be converted to. + :vartype virtual_machine_scale_set_name: str + """ + + _attribute_map = { + "virtual_machine_scale_set_name": {"key": "virtualMachineScaleSetName", "type": "str"}, + } + + def __init__(self, *, virtual_machine_scale_set_name: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword virtual_machine_scale_set_name: Specifies information about the Virtual Machine Scale + Set that the Availability Set should be converted to. + :paramtype virtual_machine_scale_set_name: str + """ + super().__init__(**kwargs) + self.virtual_machine_scale_set_name = virtual_machine_scale_set_name + + class DataDisk(_serialization.Model): """Describes a data disk. @@ -1666,15 +1757,15 @@ class DataDisk(_serialization.Model): :ivar name: The disk name. :vartype name: str :ivar vhd: The virtual hard disk. - :vartype vhd: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype vhd: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar image: The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. - :vartype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool @@ -1687,16 +1778,16 @@ class DataDisk(_serialization.Model): **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :vartype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :vartype disk_size_gb: int :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :ivar source_resource: The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk. - :vartype source_resource: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype source_resource: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar to_be_detached: Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. :vartype to_be_detached: bool @@ -1716,12 +1807,12 @@ class DataDisk(_serialization.Model): option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. "ForceDetach" - :vartype detach_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDetachOptionTypes + :vartype detach_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDetachOptionTypes :ivar delete_option: Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ _validation = { @@ -1775,15 +1866,15 @@ def __init__( :keyword name: The disk name. :paramtype name: str :keyword vhd: The virtual hard disk. - :paramtype vhd: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype vhd: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword image: The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. - :paramtype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool @@ -1796,16 +1887,16 @@ def __init__( data disk. **Copy:** This value is used to create a data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore point. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :paramtype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :paramtype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :keyword disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :paramtype disk_size_gb: int :keyword managed_disk: The managed disk parameters. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :keyword source_resource: The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk. - :paramtype source_resource: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype source_resource: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :keyword to_be_detached: Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. :paramtype to_be_detached: bool @@ -1817,12 +1908,12 @@ def __init__( option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. "ForceDetach" - :paramtype detach_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDetachOptionTypes + :paramtype detach_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDetachOptionTypes :keyword delete_option: Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ super().__init__(**kwargs) self.lun = lun @@ -1880,16 +1971,16 @@ class DataDisksToAttach(_serialization.Model): :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar delete_option: Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool @@ -1929,16 +2020,16 @@ def __init__( :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword delete_option: Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool @@ -1961,7 +2052,7 @@ class DataDisksToDetach(_serialization.Model): :vartype disk_id: str :ivar detach_option: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details. "ForceDetach" - :vartype detach_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDetachOptionTypes + :vartype detach_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDetachOptionTypes """ _validation = { @@ -1985,7 +2076,7 @@ def __init__( :paramtype disk_id: str :keyword detach_option: Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details. "ForceDetach" - :paramtype detach_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDetachOptionTypes + :paramtype detach_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDetachOptionTypes """ super().__init__(**kwargs) self.disk_id = disk_id @@ -2011,7 +2102,7 @@ class DedicatedHost(Resource): :vartype tags: dict[str, str] :ivar sku: SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values. Required. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :vartype platform_fault_domain: int :ivar auto_replace_on_failure: Specifies whether the dedicated host should be replaced @@ -2021,18 +2112,18 @@ class DedicatedHost(Resource): not change throughout the lifetime of the host. :vartype host_id: str :ivar virtual_machines: A list of references to all virtual machines in the Dedicated Host. - :vartype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + :vartype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar license_type: Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual". - :vartype license_type: str or ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostLicenseTypes + :vartype license_type: str or ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostLicenseTypes :ivar provisioning_time: The date when the host was first provisioned. :vartype provisioning_time: ~datetime.datetime :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The dedicated host instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostInstanceView :ivar time_created: Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -2089,7 +2180,7 @@ def __init__( :paramtype tags: dict[str, str] :keyword sku: SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values. Required. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :paramtype platform_fault_domain: int @@ -2101,7 +2192,7 @@ def __init__( **Windows_Server_Perpetual.** The default value is: **None.**. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual". :paramtype license_type: str or - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostLicenseTypes + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostLicenseTypes """ super().__init__(location=location, tags=tags, **kwargs) self.sku = sku @@ -2150,7 +2241,7 @@ class DedicatedHostAvailableCapacity(_serialization.Model): :ivar allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. :vartype allocatable_v_ms: - list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAllocatableVM] + list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAllocatableVM] """ _attribute_map = { @@ -2164,7 +2255,7 @@ def __init__( :keyword allocatable_v_ms: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host. :paramtype allocatable_v_ms: - list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAllocatableVM] + list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAllocatableVM] """ super().__init__(**kwargs) self.allocatable_v_ms = allocatable_v_ms @@ -2196,10 +2287,10 @@ class DedicatedHostGroup(Resource): :ivar platform_fault_domain_count: Number of fault domains that the host group can span. :vartype platform_fault_domain_count: int :ivar hosts: A list of references to all dedicated hosts in the dedicated host group. - :vartype hosts: list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + :vartype hosts: list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar instance_view: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupInstanceView :ivar support_automatic_placement: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host @@ -2208,7 +2299,7 @@ class DedicatedHostGroup(Resource): :ivar additional_capabilities: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. :vartype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities """ _validation = { @@ -2268,7 +2359,7 @@ def __init__( :keyword additional_capabilities: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities """ super().__init__(location=location, tags=tags, **kwargs) self.zones = zones @@ -2283,7 +2374,7 @@ class DedicatedHostGroupInstanceView(_serialization.Model): """DedicatedHostGroupInstanceView. :ivar hosts: List of instance view of the dedicated hosts under the dedicated host group. - :vartype hosts: list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostInstanceViewWithName] + :vartype hosts: list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostInstanceViewWithName] """ _attribute_map = { @@ -2296,7 +2387,7 @@ def __init__( """ :keyword hosts: List of instance view of the dedicated hosts under the dedicated host group. :paramtype hosts: - list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostInstanceViewWithName] + list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostInstanceViewWithName] """ super().__init__(**kwargs) self.hosts = hosts @@ -2308,7 +2399,7 @@ class DedicatedHostGroupListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of dedicated host groups. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :ivar next_link: The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups. :vartype next_link: str @@ -2328,7 +2419,7 @@ def __init__( ) -> None: """ :keyword value: The list of dedicated host groups. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :keyword next_link: The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups. :paramtype next_link: str @@ -2385,10 +2476,10 @@ class DedicatedHostGroupUpdate(UpdateResource): :ivar platform_fault_domain_count: Number of fault domains that the host group can span. :vartype platform_fault_domain_count: int :ivar hosts: A list of references to all dedicated hosts in the dedicated host group. - :vartype hosts: list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + :vartype hosts: list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar instance_view: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupInstanceView :ivar support_automatic_placement: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host @@ -2397,7 +2488,7 @@ class DedicatedHostGroupUpdate(UpdateResource): :ivar additional_capabilities: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. :vartype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities """ _validation = { @@ -2446,7 +2537,7 @@ def __init__( :keyword additional_capabilities: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupPropertiesAdditionalCapabilities """ super().__init__(tags=tags, **kwargs) self.zones = zones @@ -2467,9 +2558,9 @@ class DedicatedHostInstanceView(_serialization.Model): :vartype asset_id: str :ivar available_capacity: Unutilized capacity of the dedicated host. :vartype available_capacity: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAvailableCapacity + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAvailableCapacity :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _validation = { @@ -2492,9 +2583,9 @@ def __init__( """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAvailableCapacity + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAvailableCapacity :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.asset_id = None @@ -2513,9 +2604,9 @@ class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): :vartype asset_id: str :ivar available_capacity: Unutilized capacity of the dedicated host. :vartype available_capacity: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAvailableCapacity + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAvailableCapacity :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar name: The name of the dedicated host. :vartype name: str """ @@ -2542,9 +2633,9 @@ def __init__( """ :keyword available_capacity: Unutilized capacity of the dedicated host. :paramtype available_capacity: - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostAvailableCapacity + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostAvailableCapacity :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(available_capacity=available_capacity, statuses=statuses, **kwargs) self.name = None @@ -2556,7 +2647,7 @@ class DedicatedHostListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of dedicated hosts. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :ivar next_link: The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts. :vartype next_link: str @@ -2574,7 +2665,7 @@ class DedicatedHostListResult(_serialization.Model): def __init__(self, *, value: List["_models.DedicatedHost"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of dedicated hosts. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :keyword next_link: The URI to fetch the next page of dedicated hosts. Call ListNext() with this URI to fetch the next page of dedicated hosts. :paramtype next_link: str @@ -2615,7 +2706,7 @@ class DedicatedHostUpdate(UpdateResource): :ivar sku: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :vartype platform_fault_domain: int :ivar auto_replace_on_failure: Specifies whether the dedicated host should be replaced @@ -2625,18 +2716,18 @@ class DedicatedHostUpdate(UpdateResource): not change throughout the lifetime of the host. :vartype host_id: str :ivar virtual_machines: A list of references to all virtual machines in the Dedicated Host. - :vartype virtual_machines: list[~azure.mgmt.compute.v2024_07_01.models.SubResourceReadOnly] + :vartype virtual_machines: list[~azure.mgmt.compute.v2024_11_01.models.SubResourceReadOnly] :ivar license_type: Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: **None,** **Windows_Server_Hybrid,** **Windows_Server_Perpetual.** The default value is: **None.**. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual". - :vartype license_type: str or ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostLicenseTypes + :vartype license_type: str or ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostLicenseTypes :ivar provisioning_time: The date when the host was first provisioned. :vartype provisioning_time: ~datetime.datetime :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The dedicated host instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostInstanceView :ivar time_created: Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -2682,7 +2773,7 @@ def __init__( :keyword sku: [List all available dedicated host sizes for resizing] (https://docs.microsoft.com/rest/api/compute/dedicated-hosts/listavailablesizes). Resizing can be only used to scale up DedicatedHost. Only name is required to be set. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. :paramtype platform_fault_domain: int @@ -2694,7 +2785,7 @@ def __init__( **Windows_Server_Perpetual.** The default value is: **None.**. Known values are: "None", "Windows_Server_Hybrid", and "Windows_Server_Perpetual". :paramtype license_type: str or - ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostLicenseTypes + ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostLicenseTypes """ super().__init__(tags=tags, **kwargs) self.sku = sku @@ -2709,6 +2800,39 @@ def __init__( self.time_created = None +class DefaultVirtualMachineScaleSetInfo(_serialization.Model): + """Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration + without downtime of the VMs via the ConvertToVirtualMachineScaleSet API. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar constrained_maximum_capacity: Indicates if the the maximum capacity of the default + migrated Virtual Machine Scale Set after its migration will be constrained to a limited number + of VMs. + :vartype constrained_maximum_capacity: bool + :ivar default_virtual_machine_scale_set: The default Virtual Machine ScaleSet Uri that the + Availability Set will be moved to upon triggering a seamless migration via the + ConvertToVirtualMachineScaleSet API. + :vartype default_virtual_machine_scale_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource + """ + + _validation = { + "constrained_maximum_capacity": {"readonly": True}, + "default_virtual_machine_scale_set": {"readonly": True}, + } + + _attribute_map = { + "constrained_maximum_capacity": {"key": "constrainedMaximumCapacity", "type": "bool"}, + "default_virtual_machine_scale_set": {"key": "defaultVirtualMachineScaleSet", "type": "SubResource"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.constrained_maximum_capacity = None + self.default_virtual_machine_scale_set = None + + class DiagnosticsProfile(_serialization.Model): """Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. @@ -2717,7 +2841,7 @@ class DiagnosticsProfile(_serialization.Model): specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnostics + :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnostics """ _attribute_map = { @@ -2731,7 +2855,7 @@ def __init__(self, *, boot_diagnostics: Optional["_models.BootDiagnostics"] = No specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnostics + :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnostics """ super().__init__(**kwargs) self.boot_diagnostics = boot_diagnostics @@ -2742,7 +2866,7 @@ class DiffDiskSettings(_serialization.Model): disk. **Note:** The ephemeral disk settings can only be specified for managed disk. :ivar option: Specifies the ephemeral disk settings for operating system disk. "Local" - :vartype option: str or ~azure.mgmt.compute.v2024_07_01.models.DiffDiskOptions + :vartype option: str or ~azure.mgmt.compute.v2024_11_01.models.DiffDiskOptions :ivar placement: Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** @@ -2751,7 +2875,7 @@ class DiffDiskSettings(_serialization.Model): https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01. Known values are: "CacheDisk", "ResourceDisk", and "NvmeDisk". - :vartype placement: str or ~azure.mgmt.compute.v2024_07_01.models.DiffDiskPlacement + :vartype placement: str or ~azure.mgmt.compute.v2024_11_01.models.DiffDiskPlacement """ _attribute_map = { @@ -2768,7 +2892,7 @@ def __init__( ) -> None: """ :keyword option: Specifies the ephemeral disk settings for operating system disk. "Local" - :paramtype option: str or ~azure.mgmt.compute.v2024_07_01.models.DiffDiskOptions + :paramtype option: str or ~azure.mgmt.compute.v2024_11_01.models.DiffDiskOptions :keyword placement: Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk,** **NvmeDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** or **NvmeDisk** @@ -2777,7 +2901,7 @@ def __init__( https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01. Known values are: "CacheDisk", "ResourceDisk", and "NvmeDisk". - :paramtype placement: str or ~azure.mgmt.compute.v2024_07_01.models.DiffDiskPlacement + :paramtype placement: str or ~azure.mgmt.compute.v2024_11_01.models.DiffDiskPlacement """ super().__init__(**kwargs) self.option = option @@ -2789,7 +2913,7 @@ class DisallowedConfiguration(_serialization.Model): :ivar vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". - :vartype vm_disk_type: str or ~azure.mgmt.compute.v2024_07_01.models.VmDiskTypes + :vartype vm_disk_type: str or ~azure.mgmt.compute.v2024_11_01.models.VmDiskTypes """ _attribute_map = { @@ -2800,7 +2924,7 @@ def __init__(self, *, vm_disk_type: Optional[Union[str, "_models.VmDiskTypes"]] """ :keyword vm_disk_type: VM disk types which are disallowed. Known values are: "None" and "Unmanaged". - :paramtype vm_disk_type: str or ~azure.mgmt.compute.v2024_07_01.models.VmDiskTypes + :paramtype vm_disk_type: str or ~azure.mgmt.compute.v2024_11_01.models.VmDiskTypes """ super().__init__(**kwargs) self.vm_disk_type = vm_disk_type @@ -2841,9 +2965,9 @@ class DiskEncryptionSettings(_serialization.Model): :ivar disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. - :vartype disk_encryption_key: ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + :vartype disk_encryption_key: ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :ivar key_encryption_key: Specifies the location of the key encryption key in Key Vault. - :vartype key_encryption_key: ~azure.mgmt.compute.v2024_07_01.models.KeyVaultKeyReference + :vartype key_encryption_key: ~azure.mgmt.compute.v2024_11_01.models.KeyVaultKeyReference :ivar enabled: Specifies whether disk encryption should be enabled on the virtual machine. :vartype enabled: bool """ @@ -2865,9 +2989,9 @@ def __init__( """ :keyword disk_encryption_key: Specifies the location of the disk encryption key, which is a Key Vault Secret. - :paramtype disk_encryption_key: ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + :paramtype disk_encryption_key: ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :keyword key_encryption_key: Specifies the location of the key encryption key in Key Vault. - :paramtype key_encryption_key: ~azure.mgmt.compute.v2024_07_01.models.KeyVaultKeyReference + :paramtype key_encryption_key: ~azure.mgmt.compute.v2024_11_01.models.KeyVaultKeyReference :keyword enabled: Specifies whether disk encryption should be enabled on the virtual machine. :paramtype enabled: bool """ @@ -2885,9 +3009,9 @@ class DiskInstanceView(_serialization.Model): :ivar encryption_settings: Specifies the encryption settings for the OS Disk. :code:`
`\\ :code:`
` Minimum api-version: 2015-06-15. :vartype encryption_settings: - list[~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSettings] + list[~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSettings] :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -2910,9 +3034,9 @@ def __init__( :keyword encryption_settings: Specifies the encryption settings for the OS Disk. :code:`
`\\ :code:`
` Minimum api-version: 2015-06-15. :paramtype encryption_settings: - list[~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSettings] + list[~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSettings] :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.name = name @@ -2952,9 +3076,9 @@ class DiskRestorePointAttributes(SubResourceReadOnly): :vartype id: str :ivar encryption: Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. - :vartype encryption: ~azure.mgmt.compute.v2024_07_01.models.RestorePointEncryption + :vartype encryption: ~azure.mgmt.compute.v2024_11_01.models.RestorePointEncryption :ivar source_disk_restore_point: Resource Id of the source disk restore point. - :vartype source_disk_restore_point: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype source_disk_restore_point: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference """ _validation = { @@ -2977,9 +3101,9 @@ def __init__( """ :keyword encryption: Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point. - :paramtype encryption: ~azure.mgmt.compute.v2024_07_01.models.RestorePointEncryption + :paramtype encryption: ~azure.mgmt.compute.v2024_11_01.models.RestorePointEncryption :keyword source_disk_restore_point: Resource Id of the source disk restore point. - :paramtype source_disk_restore_point: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype source_disk_restore_point: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference """ super().__init__(**kwargs) self.encryption = encryption @@ -2993,7 +3117,7 @@ class DiskRestorePointInstanceView(_serialization.Model): :vartype id: str :ivar replication_status: The disk restore point replication status information. :vartype replication_status: - ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointReplicationStatus + ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointReplicationStatus """ _attribute_map = { @@ -3013,7 +3137,7 @@ def __init__( :paramtype id: str :keyword replication_status: The disk restore point replication status information. :paramtype replication_status: - ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointReplicationStatus + ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointReplicationStatus """ super().__init__(**kwargs) self.id = id @@ -3024,7 +3148,7 @@ class DiskRestorePointReplicationStatus(_serialization.Model): """The instance view of a disk restore point. :ivar status: The resource status information. - :vartype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus :ivar completion_percent: Replication completion percentage. :vartype completion_percent: int """ @@ -3043,7 +3167,7 @@ def __init__( ) -> None: """ :keyword status: The resource status information. - :paramtype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :paramtype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus :keyword completion_percent: Replication completion percentage. :paramtype completion_percent: int """ @@ -3102,7 +3226,7 @@ class ExtendedLocation(_serialization.Model): :ivar name: The name of the extended location. :vartype name: str :ivar type: The type of the extended location. "EdgeZone" - :vartype type: str or ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocationTypes + :vartype type: str or ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocationTypes """ _attribute_map = { @@ -3121,7 +3245,7 @@ def __init__( :keyword name: The name of the extended location. :paramtype name: str :keyword type: The type of the extended location. "EdgeZone" - :paramtype type: str or ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocationTypes + :paramtype type: str or ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocationTypes """ super().__init__(**kwargs) self.name = name @@ -3177,12 +3301,12 @@ class HardwareProfile(_serialization.Model): "Standard_NC12s_v3", "Standard_NC24s_v3", "Standard_NC24rs_v3", "Standard_ND6s", "Standard_ND12s", "Standard_ND24s", "Standard_ND24rs", "Standard_NV6", "Standard_NV12", and "Standard_NV24". - :vartype vm_size: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSizeTypes + :vartype vm_size: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSizeTypes :ivar vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details. - :vartype vm_size_properties: ~azure.mgmt.compute.v2024_07_01.models.VMSizeProperties + :vartype vm_size_properties: ~azure.mgmt.compute.v2024_11_01.models.VMSizeProperties """ _attribute_map = { @@ -3244,18 +3368,62 @@ def __init__( "Standard_NC12s_v3", "Standard_NC24s_v3", "Standard_NC24rs_v3", "Standard_ND6s", "Standard_ND12s", "Standard_ND24s", "Standard_ND24rs", "Standard_NV6", "Standard_NV12", and "Standard_NV24". - :paramtype vm_size: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSizeTypes + :paramtype vm_size: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSizeTypes :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in `VM Customization `_ for more details. - :paramtype vm_size_properties: ~azure.mgmt.compute.v2024_07_01.models.VMSizeProperties + :paramtype vm_size_properties: ~azure.mgmt.compute.v2024_11_01.models.VMSizeProperties """ super().__init__(**kwargs) self.vm_size = vm_size self.vm_size_properties = vm_size_properties +class HostEndpointSettings(_serialization.Model): + """Specifies particular host endpoint settings. + + :ivar mode: Specifies the execution mode. In Audit mode, the system acts as if it is enforcing + the access control policy, including emitting access denial entries in the logs but it does not + actually deny any requests to host endpoints. In Enforce mode, the system will enforce the + access control and it is the recommended mode of operation. Known values are: "Audit", + "Enforce", and "Disabled". + :vartype mode: str or ~azure.mgmt.compute.v2024_11_01.models.Modes + :ivar in_vm_access_control_profile_reference_id: Specifies the InVMAccessControlProfileVersion + resource id in the format of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}. # pylint: disable=line-too-long + :vartype in_vm_access_control_profile_reference_id: str + """ + + _attribute_map = { + "mode": {"key": "mode", "type": "str"}, + "in_vm_access_control_profile_reference_id": {"key": "inVMAccessControlProfileReferenceId", "type": "str"}, + } + + def __init__( + self, + *, + mode: Optional[Union[str, "_models.Modes"]] = None, + in_vm_access_control_profile_reference_id: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword mode: Specifies the execution mode. In Audit mode, the system acts as if it is + enforcing the access control policy, including emitting access denial entries in the logs but + it does not actually deny any requests to host endpoints. In Enforce mode, the system will + enforce the access control and it is the recommended mode of operation. Known values are: + "Audit", "Enforce", and "Disabled". + :paramtype mode: str or ~azure.mgmt.compute.v2024_11_01.models.Modes + :keyword in_vm_access_control_profile_reference_id: Specifies the + InVMAccessControlProfileVersion resource id in the format of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{profile}/versions/{version}. # pylint: disable=line-too-long + :paramtype in_vm_access_control_profile_reference_id: str + """ + super().__init__(**kwargs) + self.mode = mode + self.in_vm_access_control_profile_reference_id = in_vm_access_control_profile_reference_id + + class Image(Resource): """The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive @@ -3276,11 +3444,11 @@ class Image(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar extended_location: The extended location of the Image. - :vartype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :ivar source_virtual_machine: The source virtual machine from which Image is created. - :vartype source_virtual_machine: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype source_virtual_machine: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.ImageStorageProfile + :vartype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str :ivar hyper_v_generation: Specifies the HyperVGenerationType of the VirtualMachine created from @@ -3289,7 +3457,7 @@ class Image(Resource): user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". :vartype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes """ _validation = { @@ -3330,18 +3498,18 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword extended_location: The extended location of the Image. - :paramtype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :keyword source_virtual_machine: The source virtual machine from which Image is created. - :paramtype source_virtual_machine: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype source_virtual_machine: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.ImageStorageProfile + :paramtype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.ImageStorageProfile :keyword hyper_v_generation: Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". :paramtype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes """ super().__init__(location=location, tags=tags, **kwargs) self.extended_location = extended_location @@ -3355,15 +3523,15 @@ class ImageDisk(_serialization.Model): """Describes a image disk. :ivar snapshot: The snapshot. - :vartype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar managed_disk: The managedDisk. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar blob_uri: The Virtual Hard Disk. :vartype blob_uri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3373,11 +3541,11 @@ class ImageDisk(_serialization.Model): are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :vartype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters """ _attribute_map = { @@ -3404,15 +3572,15 @@ def __init__( ) -> None: """ :keyword snapshot: The snapshot. - :paramtype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword managed_disk: The managedDisk. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword blob_uri: The Virtual Hard Disk. :paramtype blob_uri: str :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3422,11 +3590,11 @@ def __init__( are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :paramtype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters """ super().__init__(**kwargs) self.snapshot = snapshot @@ -3444,15 +3612,15 @@ class ImageDataDisk(ImageDisk): All required parameters must be populated in order to send to server. :ivar snapshot: The snapshot. - :vartype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar managed_disk: The managedDisk. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar blob_uri: The Virtual Hard Disk. :vartype blob_uri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3462,11 +3630,11 @@ class ImageDataDisk(ImageDisk): are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :vartype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required. @@ -3503,15 +3671,15 @@ def __init__( ) -> None: """ :keyword snapshot: The snapshot. - :paramtype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword managed_disk: The managedDisk. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword blob_uri: The Virtual Hard Disk. :paramtype blob_uri: str :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3521,11 +3689,11 @@ def __init__( are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :paramtype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword lun: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required. @@ -3549,13 +3717,13 @@ class ImageDeprecationStatus(_serialization.Model): :ivar image_state: Describes the state of the image. Known values are: "Active", "ScheduledForDeprecation", and "Deprecated". - :vartype image_state: str or ~azure.mgmt.compute.v2024_07_01.models.ImageState + :vartype image_state: str or ~azure.mgmt.compute.v2024_11_01.models.ImageState :ivar scheduled_deprecation_time: The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher. :vartype scheduled_deprecation_time: ~datetime.datetime :ivar alternative_option: Describes the alternative option specified by the Publisher for this image when this image is deprecated. - :vartype alternative_option: ~azure.mgmt.compute.v2024_07_01.models.AlternativeOption + :vartype alternative_option: ~azure.mgmt.compute.v2024_11_01.models.AlternativeOption """ _attribute_map = { @@ -3575,13 +3743,13 @@ def __init__( """ :keyword image_state: Describes the state of the image. Known values are: "Active", "ScheduledForDeprecation", and "Deprecated". - :paramtype image_state: str or ~azure.mgmt.compute.v2024_07_01.models.ImageState + :paramtype image_state: str or ~azure.mgmt.compute.v2024_11_01.models.ImageState :keyword scheduled_deprecation_time: The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher. :paramtype scheduled_deprecation_time: ~datetime.datetime :keyword alternative_option: Describes the alternative option specified by the Publisher for this image when this image is deprecated. - :paramtype alternative_option: ~azure.mgmt.compute.v2024_07_01.models.AlternativeOption + :paramtype alternative_option: ~azure.mgmt.compute.v2024_11_01.models.AlternativeOption """ super().__init__(**kwargs) self.image_state = image_state @@ -3595,7 +3763,7 @@ class ImageListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of Images. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.Image] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.Image] :ivar next_link: The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images. :vartype next_link: str @@ -3613,7 +3781,7 @@ class ImageListResult(_serialization.Model): def __init__(self, *, value: List["_models.Image"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of Images. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.Image] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.Image] :keyword next_link: The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images. :paramtype next_link: str @@ -3629,15 +3797,15 @@ class ImageOSDisk(ImageDisk): All required parameters must be populated in order to send to server. :ivar snapshot: The snapshot. - :vartype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar managed_disk: The managedDisk. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar blob_uri: The Virtual Hard Disk. :vartype blob_uri: str :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3647,18 +3815,18 @@ class ImageOSDisk(ImageDisk): are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :vartype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :ivar os_state: The OS State. For managed images, use Generalized. Required. Known values are: "Generalized" and "Specialized". - :vartype os_state: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemStateTypes + :vartype os_state: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemStateTypes """ _validation = { @@ -3694,15 +3862,15 @@ def __init__( ) -> None: """ :keyword snapshot: The snapshot. - :paramtype snapshot: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype snapshot: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword managed_disk: The managedDisk. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword blob_uri: The Virtual Hard Disk. :paramtype blob_uri: str :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword disk_size_gb: Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB. @@ -3712,18 +3880,18 @@ def __init__( are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :paramtype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed image disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. Possible values are: **Windows,** **Linux.**. Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :keyword os_state: The OS State. For managed images, use Generalized. Required. Known values are: "Generalized" and "Specialized". - :paramtype os_state: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemStateTypes + :paramtype os_state: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemStateTypes """ super().__init__( snapshot=snapshot, @@ -3850,12 +4018,12 @@ class ImageStorageProfile(_serialization.Model): machine. :code:`
`\\ :code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: ~azure.mgmt.compute.v2024_07_01.models.ImageOSDisk + :vartype os_disk: ~azure.mgmt.compute.v2024_11_01.models.ImageOSDisk :ivar data_disks: Specifies the parameters that are used to add a data disk to a virtual machine. :code:`
`\\ :code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype data_disks: list[~azure.mgmt.compute.v2024_07_01.models.ImageDataDisk] + :vartype data_disks: list[~azure.mgmt.compute.v2024_11_01.models.ImageDataDisk] :ivar zone_resilient: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). :vartype zone_resilient: bool @@ -3880,12 +4048,12 @@ def __init__( machine. :code:`
`\\ :code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :paramtype os_disk: ~azure.mgmt.compute.v2024_07_01.models.ImageOSDisk + :paramtype os_disk: ~azure.mgmt.compute.v2024_11_01.models.ImageOSDisk :keyword data_disks: Specifies the parameters that are used to add a data disk to a virtual machine. :code:`
`\\ :code:`
` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :paramtype data_disks: list[~azure.mgmt.compute.v2024_07_01.models.ImageDataDisk] + :paramtype data_disks: list[~azure.mgmt.compute.v2024_11_01.models.ImageDataDisk] :keyword zone_resilient: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS). :paramtype zone_resilient: bool @@ -3904,9 +4072,9 @@ class ImageUpdate(UpdateResource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar source_virtual_machine: The source virtual machine from which Image is created. - :vartype source_virtual_machine: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype source_virtual_machine: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.ImageStorageProfile + :vartype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.ImageStorageProfile :ivar provisioning_state: The provisioning state. :vartype provisioning_state: str :ivar hyper_v_generation: Specifies the HyperVGenerationType of the VirtualMachine created from @@ -3915,7 +4083,7 @@ class ImageUpdate(UpdateResource): user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". :vartype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes """ _validation = { @@ -3943,16 +4111,16 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword source_virtual_machine: The source virtual machine from which Image is created. - :paramtype source_virtual_machine: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype source_virtual_machine: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.ImageStorageProfile + :paramtype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.ImageStorageProfile :keyword hyper_v_generation: Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource. Known values are: "V1" and "V2". :paramtype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes """ super().__init__(tags=tags, **kwargs) self.source_virtual_machine = source_virtual_machine @@ -3995,7 +4163,7 @@ class InstanceViewStatus(_serialization.Model): :ivar code: The status code. :vartype code: str :ivar level: The level code. Known values are: "Info", "Warning", and "Error". - :vartype level: str or ~azure.mgmt.compute.v2024_07_01.models.StatusLevelTypes + :vartype level: str or ~azure.mgmt.compute.v2024_11_01.models.StatusLevelTypes :ivar display_status: The short localizable label for the status. :vartype display_status: str :ivar message: The detailed status message, including for alerts and error messages. @@ -4026,7 +4194,7 @@ def __init__( :keyword code: The status code. :paramtype code: str :keyword level: The level code. Known values are: "Info", "Warning", and "Error". - :paramtype level: str or ~azure.mgmt.compute.v2024_07_01.models.StatusLevelTypes + :paramtype level: str or ~azure.mgmt.compute.v2024_11_01.models.StatusLevelTypes :keyword display_status: The short localizable label for the status. :paramtype display_status: str :keyword message: The detailed status message, including for alerts and error messages. @@ -4050,7 +4218,7 @@ class KeyVaultKeyReference(_serialization.Model): :ivar key_url: The URL referencing a key encryption key in Key Vault. Required. :vartype key_url: str :ivar source_vault: The relative URL of the Key Vault containing the key. Required. - :vartype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ _validation = { @@ -4068,7 +4236,7 @@ def __init__(self, *, key_url: str, source_vault: "_models.SubResource", **kwarg :keyword key_url: The URL referencing a key encryption key in Key Vault. Required. :paramtype key_url: str :keyword source_vault: The relative URL of the Key Vault containing the key. Required. - :paramtype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ super().__init__(**kwargs) self.key_url = key_url @@ -4083,7 +4251,7 @@ class KeyVaultSecretReference(_serialization.Model): :ivar secret_url: The URL referencing a secret in a Key Vault. Required. :vartype secret_url: str :ivar source_vault: The relative URL of the Key Vault containing the secret. Required. - :vartype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ _validation = { @@ -4101,7 +4269,7 @@ def __init__(self, *, secret_url: str, source_vault: "_models.SubResource", **kw :keyword secret_url: The URL referencing a secret in a Key Vault. Required. :paramtype secret_url: str :keyword source_vault: The relative URL of the Key Vault containing the secret. Required. - :paramtype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource """ super().__init__(**kwargs) self.secret_url = secret_url @@ -4117,7 +4285,7 @@ class LastPatchInstallationSummary(_serialization.Model): until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.compute.v2024_07_01.models.PatchOperationStatus + :vartype status: str or ~azure.mgmt.compute.v2024_11_01.models.PatchOperationStatus :ivar installation_activity_id: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. :vartype installation_activity_id: str @@ -4143,7 +4311,7 @@ class LastPatchInstallationSummary(_serialization.Model): :vartype last_modified_time: ~datetime.datetime :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -4199,7 +4367,7 @@ class LinuxConfiguration(_serialization.Model): disabled. :vartype disable_password_authentication: bool :ivar ssh: Specifies the ssh key configuration for a Linux OS. - :vartype ssh: ~azure.mgmt.compute.v2024_07_01.models.SshConfiguration + :vartype ssh: ~azure.mgmt.compute.v2024_11_01.models.SshConfiguration :ivar provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can @@ -4207,7 +4375,7 @@ class LinuxConfiguration(_serialization.Model): :vartype provision_vm_agent: bool :ivar patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on Linux. - :vartype patch_settings: ~azure.mgmt.compute.v2024_07_01.models.LinuxPatchSettings + :vartype patch_settings: ~azure.mgmt.compute.v2024_11_01.models.LinuxPatchSettings :ivar enable_vm_agent_platform_updates: Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. :vartype enable_vm_agent_platform_updates: bool @@ -4236,7 +4404,7 @@ def __init__( disabled. :paramtype disable_password_authentication: bool :keyword ssh: Specifies the ssh key configuration for a Linux OS. - :paramtype ssh: ~azure.mgmt.compute.v2024_07_01.models.SshConfiguration + :paramtype ssh: ~azure.mgmt.compute.v2024_11_01.models.SshConfiguration :keyword provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions @@ -4244,7 +4412,7 @@ def __init__( :paramtype provision_vm_agent: bool :keyword patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on Linux. - :paramtype patch_settings: ~azure.mgmt.compute.v2024_07_01.models.LinuxPatchSettings + :paramtype patch_settings: ~azure.mgmt.compute.v2024_11_01.models.LinuxPatchSettings :keyword enable_vm_agent_platform_updates: Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false. :paramtype enable_vm_agent_platform_updates: bool @@ -4263,7 +4431,7 @@ class LinuxParameters(_serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Linux. :vartype classifications_to_include: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchClassificationLinux] + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchClassificationLinux] :ivar package_name_masks_to_include: packages to include in the patch operation. Format: packageName_packageVersion. :vartype package_name_masks_to_include: list[str] @@ -4295,7 +4463,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Linux. :paramtype classifications_to_include: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchClassificationLinux] + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchClassificationLinux] :keyword package_name_masks_to_include: packages to include in the patch operation. Format: packageName_packageVersion. :paramtype package_name_masks_to_include: list[str] @@ -4323,7 +4491,7 @@ class LinuxPatchSettings(_serialization.Model): />`\\ :code:`
` **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". - :vartype patch_mode: str or ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchMode + :vartype patch_mode: str or ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchMode :ivar assessment_mode: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.\\ :code:`
`\\ :code:`
` Possible values are:\\ :code:`
`\\ :code:`
` **ImageDefault** - You control the timing of patch assessments on a virtual machine. @@ -4331,11 +4499,11 @@ class LinuxPatchSettings(_serialization.Model): patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". :vartype assessment_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.LinuxPatchAssessmentMode + ~azure.mgmt.compute.v2024_11_01.models.LinuxPatchAssessmentMode :ivar automatic_by_platform_settings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux. :vartype automatic_by_platform_settings: - ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchAutomaticByPlatformSettings + ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchAutomaticByPlatformSettings """ _attribute_map = { @@ -4363,7 +4531,7 @@ def __init__( />`\\ :code:`
` **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". - :paramtype patch_mode: str or ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchMode + :paramtype patch_mode: str or ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchMode :keyword assessment_mode: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.\\ :code:`
`\\ :code:`
` Possible values are:\\ :code:`
`\\ :code:`
` **ImageDefault** - You control the timing of patch assessments on a virtual machine. @@ -4371,11 +4539,11 @@ def __init__( patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". :paramtype assessment_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.LinuxPatchAssessmentMode + ~azure.mgmt.compute.v2024_11_01.models.LinuxPatchAssessmentMode :keyword automatic_by_platform_settings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux. :paramtype automatic_by_platform_settings: - ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchAutomaticByPlatformSettings + ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchAutomaticByPlatformSettings """ super().__init__(**kwargs) self.patch_mode = patch_mode @@ -4390,7 +4558,7 @@ class LinuxVMGuestPatchAutomaticByPlatformSettings(_serialization.Model): # pyl :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". :vartype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting :ivar bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching without accidental upgrades. :vartype bypass_platform_safety_checks_on_user_schedule: bool @@ -4415,7 +4583,7 @@ def __init__( :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". :paramtype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting :keyword bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching without accidental upgrades. :paramtype bypass_platform_safety_checks_on_user_schedule: bool @@ -4431,7 +4599,7 @@ class ListUsagesResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of compute resource usages. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.Usage] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.Usage] :ivar next_link: The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information. :vartype next_link: str @@ -4449,7 +4617,7 @@ class ListUsagesResult(_serialization.Model): def __init__(self, *, value: List["_models.Usage"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of compute resource usages. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.Usage] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.Usage] :keyword next_link: The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information. :paramtype next_link: str @@ -4549,7 +4717,7 @@ class LogAnalyticsOperationResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar properties: LogAnalyticsOutput. - :vartype properties: ~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOutput + :vartype properties: ~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOutput """ _validation = { @@ -4606,7 +4774,7 @@ class MaintenanceRedeployStatus(_serialization.Model): :ivar last_operation_result_code: The Last Maintenance Operation Result Code. Known values are: "None", "RetryLater", "MaintenanceAborted", and "MaintenanceCompleted". :vartype last_operation_result_code: str or - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceOperationResultCodeTypes + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceOperationResultCodeTypes :ivar last_operation_message: Message returned for the last Maintenance Operation. :vartype last_operation_message: str """ @@ -4648,7 +4816,7 @@ def __init__( :keyword last_operation_result_code: The Last Maintenance Operation Result Code. Known values are: "None", "RetryLater", "MaintenanceAborted", and "MaintenanceCompleted". :paramtype last_operation_result_code: str or - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceOperationResultCodeTypes + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceOperationResultCodeTypes :keyword last_operation_message: Message returned for the last Maintenance Operation. :paramtype last_operation_message: str """ @@ -4672,13 +4840,13 @@ class ManagedDiskParameters(SubResource): are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :vartype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar security_profile: Specifies the security profile for the managed disk. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.VMDiskSecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.VMDiskSecurityProfile """ _attribute_map = { @@ -4705,13 +4873,13 @@ def __init__( are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :paramtype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword security_profile: Specifies the security profile for the managed disk. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.VMDiskSecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.VMDiskSecurityProfile """ super().__init__(id=id, **kwargs) self.storage_account_type = storage_account_type @@ -4719,6 +4887,80 @@ def __init__( self.security_profile = security_profile +class MigrateToVirtualMachineScaleSetInput(_serialization.Model): + """Describes the Virtual Machine Scale Set to migrate from Availability Set. + + All required parameters must be populated in order to send to server. + + :ivar virtual_machine_scale_set_flexible: Specifies information about the Virtual Machine Scale + Set that the Availability Set should be migrated to. Minimum api‐version: 2024‐11‐01. Required. + :vartype virtual_machine_scale_set_flexible: ~azure.mgmt.compute.v2024_11_01.models.SubResource + """ + + _validation = { + "virtual_machine_scale_set_flexible": {"required": True}, + } + + _attribute_map = { + "virtual_machine_scale_set_flexible": {"key": "virtualMachineScaleSetFlexible", "type": "SubResource"}, + } + + def __init__(self, *, virtual_machine_scale_set_flexible: "_models.SubResource", **kwargs: Any) -> None: + """ + :keyword virtual_machine_scale_set_flexible: Specifies information about the Virtual Machine + Scale Set that the Availability Set should be migrated to. Minimum api‐version: 2024‐11‐01. + Required. + :paramtype virtual_machine_scale_set_flexible: + ~azure.mgmt.compute.v2024_11_01.models.SubResource + """ + super().__init__(**kwargs) + self.virtual_machine_scale_set_flexible = virtual_machine_scale_set_flexible + + +class MigrateVMToVirtualMachineScaleSetInput(_serialization.Model): + """The input of virtual machine migration from Availability Set to Flexible Virtual Machine Scale + Set. + + :ivar target_zone: The target zone of VM migration to Flexible Virtual Machine Scale Set. + :vartype target_zone: str + :ivar target_fault_domain: The target compute fault domain of VM migration to Flexible Virtual + Machine Scale Set. + :vartype target_fault_domain: int + :ivar target_vm_size: The target Virtual Machine size of VM migration to Flexible Virtual + Machine Scale Set. + :vartype target_vm_size: str + """ + + _attribute_map = { + "target_zone": {"key": "targetZone", "type": "str"}, + "target_fault_domain": {"key": "targetFaultDomain", "type": "int"}, + "target_vm_size": {"key": "targetVMSize", "type": "str"}, + } + + def __init__( + self, + *, + target_zone: Optional[str] = None, + target_fault_domain: Optional[int] = None, + target_vm_size: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword target_zone: The target zone of VM migration to Flexible Virtual Machine Scale Set. + :paramtype target_zone: str + :keyword target_fault_domain: The target compute fault domain of VM migration to Flexible + Virtual Machine Scale Set. + :paramtype target_fault_domain: int + :keyword target_vm_size: The target Virtual Machine size of VM migration to Flexible Virtual + Machine Scale Set. + :paramtype target_vm_size: str + """ + super().__init__(**kwargs) + self.target_zone = target_zone + self.target_fault_domain = target_fault_domain + self.target_vm_size = target_vm_size + + class NetworkInterfaceReference(SubResource): """Describes a network interface reference. @@ -4729,7 +4971,7 @@ class NetworkInterfaceReference(SubResource): :vartype primary: bool :ivar delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ _attribute_map = { @@ -4754,7 +4996,7 @@ def __init__( :paramtype primary: bool :keyword delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ super().__init__(id=id, **kwargs) self.primary = primary @@ -4767,14 +5009,15 @@ class NetworkProfile(_serialization.Model): :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. :vartype network_interfaces: - list[~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceReference] + list[~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceReference] :ivar network_api_version: specifies the Microsoft.Network API version used when creating - networking resources in the Network Interface Configurations. "2020-11-01" - :vartype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + networking resources in the Network Interface Configurations. Known values are: "2020-11-01" + and "2022-11-01". + :vartype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion :ivar network_interface_configurations: Specifies the networking configurations that will be used to create the virtual machine networking resources. :vartype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceConfiguration] """ _attribute_map = { @@ -4798,14 +5041,15 @@ def __init__( :keyword network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. :paramtype network_interfaces: - list[~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceReference] + list[~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceReference] :keyword network_api_version: specifies the Microsoft.Network API version used when creating - networking resources in the Network Interface Configurations. "2020-11-01" - :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + networking resources in the Network Interface Configurations. Known values are: "2020-11-01" + and "2022-11-01". + :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion :keyword network_interface_configurations: Specifies the networking configurations that will be used to create the virtual machine networking resources. :paramtype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceConfiguration] """ super().__init__(**kwargs) self.network_interfaces = network_interfaces @@ -4820,9 +5064,9 @@ class OrchestrationServiceStateInput(_serialization.Model): :ivar service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". - :vartype service_name: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceNames + :vartype service_name: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceNames :ivar action: The action to be performed. Required. Known values are: "Resume" and "Suspend". - :vartype action: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateAction + :vartype action: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateAction """ _validation = { @@ -4846,11 +5090,11 @@ def __init__( :keyword service_name: The name of the service. Required. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". :paramtype service_name: str or - ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceNames + ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceNames :keyword action: The action to be performed. Required. Known values are: "Resume" and "Suspend". :paramtype action: str or - ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateAction + ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateAction """ super().__init__(**kwargs) self.service_name = service_name @@ -4864,10 +5108,10 @@ class OrchestrationServiceSummary(_serialization.Model): :ivar service_name: The name of the service. Known values are: "AutomaticRepairs" and "DummyOrchestrationServiceName". - :vartype service_name: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceNames + :vartype service_name: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceNames :ivar service_state: The current state of the service. Known values are: "NotRunning", "Running", and "Suspended". - :vartype service_state: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceState + :vartype service_state: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceState """ _validation = { @@ -4897,28 +5141,28 @@ class OSDisk(_serialization.Model): :ivar os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :ivar encryption_settings: Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15. - :vartype encryption_settings: ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSettings + :vartype encryption_settings: ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSettings :ivar name: The disk name. :vartype name: str :ivar vhd: The virtual hard disk. - :vartype vhd: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype vhd: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar image: The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. - :vartype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool :ivar diff_disk_settings: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. - :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :ivar create_option: Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the virtual @@ -4926,20 +5170,20 @@ class OSDisk(_serialization.Model): described above. If you are using a marketplace image, you should also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :vartype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :vartype disk_size_gb: int :ivar managed_disk: The managed disk parameters. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ _validation = { @@ -4982,28 +5226,28 @@ def __init__( :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :keyword encryption_settings: Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15. - :paramtype encryption_settings: ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSettings + :paramtype encryption_settings: ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSettings :keyword name: The disk name. :paramtype name: str :keyword vhd: The virtual hard disk. - :paramtype vhd: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype vhd: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword image: The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist. - :paramtype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool :keyword diff_disk_settings: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. - :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :keyword create_option: Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an image to create the @@ -5011,20 +5255,20 @@ def __init__( element described above. If you are using a marketplace image, you should also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :paramtype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :paramtype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :keyword disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :paramtype disk_size_gb: int :keyword managed_disk: The managed disk parameters. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :keyword delete_option: Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ super().__init__(**kwargs) self.os_type = os_type @@ -5048,7 +5292,7 @@ class OSDiskImage(_serialization.Model): :ivar operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". - :vartype operating_system: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype operating_system: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes """ _validation = { @@ -5063,7 +5307,7 @@ def __init__(self, *, operating_system: Union[str, "_models.OperatingSystemTypes """ :keyword operating_system: The operating system of the osDiskImage. Required. Known values are: "Windows" and "Linux". - :paramtype operating_system: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype operating_system: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes """ super().__init__(**kwargs) self.operating_system = operating_system @@ -5149,18 +5393,18 @@ class OSProfile(_serialization.Model): :vartype custom_data: str :ivar windows_configuration: Specifies Windows operating system settings on the virtual machine. - :vartype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :vartype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :ivar linux_configuration: Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. - :vartype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :vartype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :ivar secrets: Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :vartype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :vartype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] :ivar allow_extension_operations: Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine. @@ -5239,18 +5483,18 @@ def __init__( :paramtype custom_data: str :keyword windows_configuration: Specifies Windows operating system settings on the virtual machine. - :paramtype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :paramtype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :keyword linux_configuration: Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. - :paramtype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :paramtype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :keyword secrets: Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :paramtype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :paramtype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] :keyword allow_extension_operations: Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine. @@ -5358,7 +5602,7 @@ class PatchInstallationDetail(_serialization.Model): :ivar installation_state: The state of the patch after the installation operation completed. Known values are: "Unknown", "Installed", "Failed", "Excluded", "NotSelected", and "Pending". :vartype installation_state: str or - ~azure.mgmt.compute.v2024_07_01.models.PatchInstallationState + ~azure.mgmt.compute.v2024_11_01.models.PatchInstallationState """ _validation = { @@ -5404,7 +5648,7 @@ class PatchSettings(_serialization.Model): :code:`
` **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Known values are: "Manual", "AutomaticByOS", and "AutomaticByPlatform". - :vartype patch_mode: str or ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchMode + :vartype patch_mode: str or ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchMode :ivar enable_hotpatching: Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. @@ -5416,11 +5660,11 @@ class PatchSettings(_serialization.Model): patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". :vartype assessment_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.WindowsPatchAssessmentMode + ~azure.mgmt.compute.v2024_11_01.models.WindowsPatchAssessmentMode :ivar automatic_by_platform_settings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows. :vartype automatic_by_platform_settings: - ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchAutomaticByPlatformSettings + ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchAutomaticByPlatformSettings """ _attribute_map = { @@ -5454,7 +5698,7 @@ def __init__( :code:`
` **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. Known values are: "Manual", "AutomaticByOS", and "AutomaticByPlatform". - :paramtype patch_mode: str or ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchMode + :paramtype patch_mode: str or ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchMode :keyword enable_hotpatching: Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'. @@ -5466,11 +5710,11 @@ def __init__( patch assessments. The property provisionVMAgent must be true. Known values are: "ImageDefault" and "AutomaticByPlatform". :paramtype assessment_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.WindowsPatchAssessmentMode + ~azure.mgmt.compute.v2024_11_01.models.WindowsPatchAssessmentMode :keyword automatic_by_platform_settings: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows. :paramtype automatic_by_platform_settings: - ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchAutomaticByPlatformSettings + ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchAutomaticByPlatformSettings """ super().__init__(**kwargs) self.patch_mode = patch_mode @@ -5479,6 +5723,63 @@ def __init__( self.automatic_by_platform_settings = automatic_by_platform_settings +class Placement(_serialization.Model): + """Describes the user-defined constraints for virtual machine hardware placement. + + :ivar zone_placement_policy: Specifies the policy for virtual machine's placement in + availability zone. Possible values are: **Any** - An availability zone will be automatically + picked by system as part of virtual machine creation. "Any" + :vartype zone_placement_policy: str or + ~azure.mgmt.compute.v2024_11_01.models.ZonePlacementPolicyType + :ivar include_zones: This property supplements the 'zonePlacementPolicy' property. If + 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must be present + in the list of availability zones passed with 'includeZones'. If 'includeZones' is not + provided, all availability zones in region will be considered for selection. + :vartype include_zones: list[str] + :ivar exclude_zones: This property supplements the 'zonePlacementPolicy' property. If + 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must not be + present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not + provided, all availability zones in region will be considered for selection. + :vartype exclude_zones: list[str] + """ + + _attribute_map = { + "zone_placement_policy": {"key": "zonePlacementPolicy", "type": "str"}, + "include_zones": {"key": "includeZones", "type": "[str]"}, + "exclude_zones": {"key": "excludeZones", "type": "[str]"}, + } + + def __init__( + self, + *, + zone_placement_policy: Optional[Union[str, "_models.ZonePlacementPolicyType"]] = None, + include_zones: Optional[List[str]] = None, + exclude_zones: Optional[List[str]] = None, + **kwargs: Any + ) -> None: + """ + :keyword zone_placement_policy: Specifies the policy for virtual machine's placement in + availability zone. Possible values are: **Any** - An availability zone will be automatically + picked by system as part of virtual machine creation. "Any" + :paramtype zone_placement_policy: str or + ~azure.mgmt.compute.v2024_11_01.models.ZonePlacementPolicyType + :keyword include_zones: This property supplements the 'zonePlacementPolicy' property. If + 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must be present + in the list of availability zones passed with 'includeZones'. If 'includeZones' is not + provided, all availability zones in region will be considered for selection. + :paramtype include_zones: list[str] + :keyword exclude_zones: This property supplements the 'zonePlacementPolicy' property. If + 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must not be + present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not + provided, all availability zones in region will be considered for selection. + :paramtype exclude_zones: list[str] + """ + super().__init__(**kwargs) + self.zone_placement_policy = zone_placement_policy + self.include_zones = include_zones + self.exclude_zones = exclude_zones + + class Plan(_serialization.Model): """Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an @@ -5599,23 +5900,23 @@ class ProximityPlacementGroup(Resource): Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use. Known values are: "Standard" and "Ultra". :vartype proximity_placement_group_type: str or - ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupType + ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupType :ivar virtual_machines: A list of references to all virtual machines in the proximity placement group. :vartype virtual_machines: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceWithColocationStatus] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceWithColocationStatus] :ivar virtual_machine_scale_sets: A list of references to all virtual machine scale sets in the proximity placement group. :vartype virtual_machine_scale_sets: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceWithColocationStatus] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceWithColocationStatus] :ivar availability_sets: A list of references to all availability sets in the proximity placement group. :vartype availability_sets: - list[~azure.mgmt.compute.v2024_07_01.models.SubResourceWithColocationStatus] + list[~azure.mgmt.compute.v2024_11_01.models.SubResourceWithColocationStatus] :ivar colocation_status: Describes colocation status of the Proximity Placement Group. - :vartype colocation_status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype colocation_status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus :ivar intent: Specifies the user intent of the proximity placement group. - :vartype intent: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupPropertiesIntent + :vartype intent: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupPropertiesIntent """ _validation = { @@ -5669,12 +5970,12 @@ def __init__( Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use. Known values are: "Standard" and "Ultra". :paramtype proximity_placement_group_type: str or - ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupType + ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupType :keyword colocation_status: Describes colocation status of the Proximity Placement Group. - :paramtype colocation_status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :paramtype colocation_status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus :keyword intent: Specifies the user intent of the proximity placement group. :paramtype intent: - ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupPropertiesIntent + ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupPropertiesIntent """ super().__init__(location=location, tags=tags, **kwargs) self.zones = zones @@ -5692,7 +5993,7 @@ class ProximityPlacementGroupListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of proximity placement groups. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :ivar next_link: The URI to fetch the next page of proximity placement groups. :vartype next_link: str """ @@ -5711,7 +6012,7 @@ def __init__( ) -> None: """ :keyword value: The list of proximity placement groups. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :keyword next_link: The URI to fetch the next page of proximity placement groups. :paramtype next_link: str """ @@ -5751,26 +6052,33 @@ class ProximityPlacementGroupUpdate(UpdateResource): class ProxyAgentSettings(_serialization.Model): - """Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: - 2023-09-01. + """Specifies ProxyAgent settings for the virtual machine or virtual machine scale set. Minimum + api-version: 2023-09-01. :ivar enabled: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set. :vartype enabled: bool - :ivar mode: Specifies the mode that ProxyAgent will execute on if the feature is enabled. - ProxyAgent will start to audit or monitor but not enforce access control over requests to host - endpoints in Audit mode, while in Enforce mode it will enforce access control. The default - value is Enforce mode. Known values are: "Audit" and "Enforce". - :vartype mode: str or ~azure.mgmt.compute.v2024_07_01.models.Mode - :ivar key_incarnation_id: Increase the value of this property allows user to reset the key used - for securing communication channel between guest and host. + :ivar mode: Specifies the mode that ProxyAgent will execute on. Warning: this property has been + deprecated, please specify 'mode' under particular hostendpoint setting. Known values are: + "Audit" and "Enforce". + :vartype mode: str or ~azure.mgmt.compute.v2024_11_01.models.Mode + :ivar key_incarnation_id: Increase the value of this property allows users to reset the key + used for securing communication channel between guest and host. :vartype key_incarnation_id: int + :ivar wire_server: Specifies the Wire Server endpoint settings while creating the virtual + machine or virtual machine scale set. Minimum api-version: 2024-03-01. + :vartype wire_server: ~azure.mgmt.compute.v2024_11_01.models.HostEndpointSettings + :ivar imds: Specifies the IMDS endpoint settings while creating the virtual machine or virtual + machine scale set. Minimum api-version: 2024-03-01. + :vartype imds: ~azure.mgmt.compute.v2024_11_01.models.HostEndpointSettings """ _attribute_map = { "enabled": {"key": "enabled", "type": "bool"}, "mode": {"key": "mode", "type": "str"}, "key_incarnation_id": {"key": "keyIncarnationId", "type": "int"}, + "wire_server": {"key": "wireServer", "type": "HostEndpointSettings"}, + "imds": {"key": "imds", "type": "HostEndpointSettings"}, } def __init__( @@ -5779,25 +6087,34 @@ def __init__( enabled: Optional[bool] = None, mode: Optional[Union[str, "_models.Mode"]] = None, key_incarnation_id: Optional[int] = None, + wire_server: Optional["_models.HostEndpointSettings"] = None, + imds: Optional["_models.HostEndpointSettings"] = None, **kwargs: Any ) -> None: """ :keyword enabled: Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set. :paramtype enabled: bool - :keyword mode: Specifies the mode that ProxyAgent will execute on if the feature is enabled. - ProxyAgent will start to audit or monitor but not enforce access control over requests to host - endpoints in Audit mode, while in Enforce mode it will enforce access control. The default - value is Enforce mode. Known values are: "Audit" and "Enforce". - :paramtype mode: str or ~azure.mgmt.compute.v2024_07_01.models.Mode - :keyword key_incarnation_id: Increase the value of this property allows user to reset the key + :keyword mode: Specifies the mode that ProxyAgent will execute on. Warning: this property has + been deprecated, please specify 'mode' under particular hostendpoint setting. Known values are: + "Audit" and "Enforce". + :paramtype mode: str or ~azure.mgmt.compute.v2024_11_01.models.Mode + :keyword key_incarnation_id: Increase the value of this property allows users to reset the key used for securing communication channel between guest and host. :paramtype key_incarnation_id: int + :keyword wire_server: Specifies the Wire Server endpoint settings while creating the virtual + machine or virtual machine scale set. Minimum api-version: 2024-03-01. + :paramtype wire_server: ~azure.mgmt.compute.v2024_11_01.models.HostEndpointSettings + :keyword imds: Specifies the IMDS endpoint settings while creating the virtual machine or + virtual machine scale set. Minimum api-version: 2024-03-01. + :paramtype imds: ~azure.mgmt.compute.v2024_11_01.models.HostEndpointSettings """ super().__init__(**kwargs) self.enabled = enabled self.mode = mode self.key_incarnation_id = key_incarnation_id + self.wire_server = wire_server + self.imds = imds class ProxyResource(_serialization.Model): @@ -5838,9 +6155,9 @@ class PublicIPAddressSku(_serialization.Model): """Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. :ivar name: Specify public IP sku name. Known values are: "Basic" and "Standard". - :vartype name: str or ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSkuName + :vartype name: str or ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSkuName :ivar tier: Specify public IP sku tier. Known values are: "Regional", "Global", and "Global". - :vartype tier: str or ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSkuTier + :vartype tier: str or ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSkuTier """ _attribute_map = { @@ -5857,10 +6174,10 @@ def __init__( ) -> None: """ :keyword name: Specify public IP sku name. Known values are: "Basic" and "Standard". - :paramtype name: str or ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSkuName + :paramtype name: str or ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSkuName :keyword tier: Specify public IP sku tier. Known values are: "Regional", "Global", and "Global". - :paramtype tier: str or ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSkuTier + :paramtype tier: str or ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSkuTier """ super().__init__(**kwargs) self.name = name @@ -5962,7 +6279,7 @@ class RequestRateByIntervalInput(LogAnalyticsInputBase): :vartype group_by_user_agent: bool :ivar interval_length: Interval value in minutes used to create LogAnalytics call rate logs. Required. Known values are: "ThreeMins", "FiveMins", "ThirtyMins", and "SixtyMins". - :vartype interval_length: str or ~azure.mgmt.compute.v2024_07_01.models.IntervalInMins + :vartype interval_length: str or ~azure.mgmt.compute.v2024_11_01.models.IntervalInMins """ _validation = { @@ -6018,7 +6335,7 @@ def __init__( :paramtype group_by_user_agent: bool :keyword interval_length: Interval value in minutes used to create LogAnalytics call rate logs. Required. Known values are: "ThreeMins", "FiveMins", "ThirtyMins", and "SixtyMins". - :paramtype interval_length: str or ~azure.mgmt.compute.v2024_07_01.models.IntervalInMins + :paramtype interval_length: str or ~azure.mgmt.compute.v2024_11_01.models.IntervalInMins """ super().__init__( blob_container_sas_uri=blob_container_sas_uri, @@ -6035,21 +6352,30 @@ def __init__( class ResiliencyPolicy(_serialization.Model): - """Describes an resiliency policy - resilientVMCreationPolicy and/or resilientVMDeletionPolicy. + """Describes an resiliency policy - AutomaticZoneRebalancingPolicy, ResilientVMCreationPolicy + and/or ResilientVMDeletionPolicy. :ivar resilient_vm_creation_policy: The configuration parameters used while performing resilient VM creation. :vartype resilient_vm_creation_policy: - ~azure.mgmt.compute.v2024_07_01.models.ResilientVMCreationPolicy + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMCreationPolicy :ivar resilient_vm_deletion_policy: The configuration parameters used while performing resilient VM deletion. :vartype resilient_vm_deletion_policy: - ~azure.mgmt.compute.v2024_07_01.models.ResilientVMDeletionPolicy + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMDeletionPolicy + :ivar automatic_zone_rebalancing_policy: The configuration parameters used while performing + automatic AZ balancing. + :vartype automatic_zone_rebalancing_policy: + ~azure.mgmt.compute.v2024_11_01.models.AutomaticZoneRebalancingPolicy """ _attribute_map = { "resilient_vm_creation_policy": {"key": "resilientVMCreationPolicy", "type": "ResilientVMCreationPolicy"}, "resilient_vm_deletion_policy": {"key": "resilientVMDeletionPolicy", "type": "ResilientVMDeletionPolicy"}, + "automatic_zone_rebalancing_policy": { + "key": "automaticZoneRebalancingPolicy", + "type": "AutomaticZoneRebalancingPolicy", + }, } def __init__( @@ -6057,21 +6383,27 @@ def __init__( *, resilient_vm_creation_policy: Optional["_models.ResilientVMCreationPolicy"] = None, resilient_vm_deletion_policy: Optional["_models.ResilientVMDeletionPolicy"] = None, + automatic_zone_rebalancing_policy: Optional["_models.AutomaticZoneRebalancingPolicy"] = None, **kwargs: Any ) -> None: """ :keyword resilient_vm_creation_policy: The configuration parameters used while performing resilient VM creation. :paramtype resilient_vm_creation_policy: - ~azure.mgmt.compute.v2024_07_01.models.ResilientVMCreationPolicy + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMCreationPolicy :keyword resilient_vm_deletion_policy: The configuration parameters used while performing resilient VM deletion. :paramtype resilient_vm_deletion_policy: - ~azure.mgmt.compute.v2024_07_01.models.ResilientVMDeletionPolicy + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMDeletionPolicy + :keyword automatic_zone_rebalancing_policy: The configuration parameters used while performing + automatic AZ balancing. + :paramtype automatic_zone_rebalancing_policy: + ~azure.mgmt.compute.v2024_11_01.models.AutomaticZoneRebalancingPolicy """ super().__init__(**kwargs) self.resilient_vm_creation_policy = resilient_vm_creation_policy self.resilient_vm_deletion_policy = resilient_vm_deletion_policy + self.automatic_zone_rebalancing_policy = automatic_zone_rebalancing_policy class ResilientVMCreationPolicy(_serialization.Model): @@ -6124,7 +6456,7 @@ class ResourceSharingProfile(_serialization.Model): :ivar subscription_ids: Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :vartype subscription_ids: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype subscription_ids: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ _attribute_map = { @@ -6136,7 +6468,7 @@ def __init__(self, *, subscription_ids: Optional[List["_models.SubResource"]] = :keyword subscription_ids: Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. - :paramtype subscription_ids: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :paramtype subscription_ids: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ super().__init__(**kwargs) self.subscription_ids = subscription_ids @@ -6201,24 +6533,24 @@ class RestorePoint(ProxyResource): :vartype type: str :ivar exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. - :vartype exclude_disks: list[~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference] + :vartype exclude_disks: list[~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference] :ivar source_metadata: Gets the details of the VM captured at the time of the restore point creation. - :vartype source_metadata: ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceMetadata + :vartype source_metadata: ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceMetadata :ivar provisioning_state: Gets the provisioning state of the restore point. :vartype provisioning_state: str :ivar consistency_mode: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details. Known values are: "CrashConsistent", "FileSystemConsistent", and "ApplicationConsistent". - :vartype consistency_mode: str or ~azure.mgmt.compute.v2024_07_01.models.ConsistencyModeTypes + :vartype consistency_mode: str or ~azure.mgmt.compute.v2024_11_01.models.ConsistencyModeTypes :ivar time_created: Gets the creation time of the restore point. :vartype time_created: ~datetime.datetime :ivar source_restore_point: Resource Id of the source restore point from which a copy needs to be created. - :vartype source_restore_point: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype source_restore_point: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar instance_view: The restore point instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.RestorePointInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.RestorePointInstanceView """ _validation = { @@ -6255,20 +6587,20 @@ def __init__( """ :keyword exclude_disks: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included. - :paramtype exclude_disks: list[~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference] + :paramtype exclude_disks: list[~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference] :keyword source_metadata: Gets the details of the VM captured at the time of the restore point creation. - :paramtype source_metadata: ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceMetadata + :paramtype source_metadata: ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceMetadata :keyword consistency_mode: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details. Known values are: "CrashConsistent", "FileSystemConsistent", and "ApplicationConsistent". - :paramtype consistency_mode: str or ~azure.mgmt.compute.v2024_07_01.models.ConsistencyModeTypes + :paramtype consistency_mode: str or ~azure.mgmt.compute.v2024_11_01.models.ConsistencyModeTypes :keyword time_created: Gets the creation time of the restore point. :paramtype time_created: ~datetime.datetime :keyword source_restore_point: Resource Id of the source restore point from which a copy needs to be created. - :paramtype source_restore_point: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype source_restore_point: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference """ super().__init__(**kwargs) self.exclude_disks = exclude_disks @@ -6299,14 +6631,14 @@ class RestorePointCollection(Resource): :vartype tags: dict[str, str] :ivar source: The properties of the source resource that this restore point collection is created from. - :vartype source: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionSourceProperties + :vartype source: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionSourceProperties :ivar provisioning_state: The provisioning state of the restore point collection. :vartype provisioning_state: str :ivar restore_point_collection_id: The unique id of the restore point collection. :vartype restore_point_collection_id: str :ivar restore_points: A list containing all restore points created under this restore point collection. - :vartype restore_points: list[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :vartype restore_points: list[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] """ _validation = { @@ -6347,7 +6679,7 @@ def __init__( :keyword source: The properties of the source resource that this restore point collection is created from. :paramtype source: - ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionSourceProperties + ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionSourceProperties """ super().__init__(location=location, tags=tags, **kwargs) self.source = source @@ -6360,7 +6692,7 @@ class RestorePointCollectionListResult(_serialization.Model): """The List restore point collection operation response. :ivar value: Gets the list of restore point collections. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :ivar next_link: The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections. :vartype next_link: str @@ -6380,7 +6712,7 @@ def __init__( ) -> None: """ :keyword value: Gets the list of restore point collections. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :keyword next_link: The uri to fetch the next page of RestorePointCollections. Call ListNext() with this to fetch the next page of RestorePointCollections. :paramtype next_link: str @@ -6429,14 +6761,14 @@ class RestorePointCollectionUpdate(UpdateResource): :vartype tags: dict[str, str] :ivar source: The properties of the source resource that this restore point collection is created from. - :vartype source: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionSourceProperties + :vartype source: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionSourceProperties :ivar provisioning_state: The provisioning state of the restore point collection. :vartype provisioning_state: str :ivar restore_point_collection_id: The unique id of the restore point collection. :vartype restore_point_collection_id: str :ivar restore_points: A list containing all restore points created under this restore point collection. - :vartype restore_points: list[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :vartype restore_points: list[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] """ _validation = { @@ -6466,7 +6798,7 @@ def __init__( :keyword source: The properties of the source resource that this restore point collection is created from. :paramtype source: - ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionSourceProperties + ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionSourceProperties """ super().__init__(tags=tags, **kwargs) self.source = source @@ -6484,11 +6816,11 @@ class RestorePointEncryption(_serialization.Model): only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar type: The type of key used to encrypt the data of the disk restore point. Known values are: "EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey", and "EncryptionAtRestWithPlatformAndCustomerKeys". - :vartype type: str or ~azure.mgmt.compute.v2024_07_01.models.RestorePointEncryptionType + :vartype type: str or ~azure.mgmt.compute.v2024_11_01.models.RestorePointEncryptionType """ _attribute_map = { @@ -6509,11 +6841,11 @@ def __init__( only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword type: The type of key used to encrypt the data of the disk restore point. Known values are: "EncryptionAtRestWithPlatformKey", "EncryptionAtRestWithCustomerKey", and "EncryptionAtRestWithPlatformAndCustomerKeys". - :paramtype type: str or ~azure.mgmt.compute.v2024_07_01.models.RestorePointEncryptionType + :paramtype type: str or ~azure.mgmt.compute.v2024_11_01.models.RestorePointEncryptionType """ super().__init__(**kwargs) self.disk_encryption_set = disk_encryption_set @@ -6525,9 +6857,9 @@ class RestorePointInstanceView(_serialization.Model): :ivar disk_restore_points: The disk restore points information. :vartype disk_restore_points: - list[~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointInstanceView] :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -6545,9 +6877,9 @@ def __init__( """ :keyword disk_restore_points: The disk restore points information. :paramtype disk_restore_points: - list[~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointInstanceView] :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.disk_restore_points = disk_restore_points @@ -6562,20 +6894,20 @@ class RestorePointSourceMetadata(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar hardware_profile: Gets the hardware profile. - :vartype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile :ivar storage_profile: Gets the storage profile. :vartype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMStorageProfile :ivar os_profile: Gets the OS profile. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :ivar diagnostics_profile: Gets the diagnostics profile. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar license_type: Gets the license type, which is for bring your own license scenario. :vartype license_type: str :ivar vm_id: Gets the virtual machine unique id. :vartype vm_id: str :ivar security_profile: Gets the security profile. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar location: Location of the VM from which the restore point was created. :vartype location: str :ivar user_data: UserData associated with the source VM for which restore point is captured, @@ -6584,7 +6916,7 @@ class RestorePointSourceMetadata(_serialization.Model): :ivar hyper_v_generation: HyperVGeneration of the source VM for which restore point is captured. Known values are: "V1" and "V2". :vartype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes """ _validation = { @@ -6618,7 +6950,7 @@ def __init__( """ :keyword storage_profile: Gets the storage profile. :paramtype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMStorageProfile """ super().__init__(**kwargs) self.hardware_profile = None @@ -6643,14 +6975,14 @@ class RestorePointSourceVMDataDisk(_serialization.Model): :ivar name: Gets the disk name. :vartype name: str :ivar caching: Gets the caching type. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar disk_size_gb: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks. :vartype disk_size_gb: int :ivar managed_disk: Contains the managed disk details. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :ivar disk_restore_point: Contains Disk Restore Point properties. - :vartype disk_restore_point: ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointAttributes + :vartype disk_restore_point: ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointAttributes :ivar write_accelerator_enabled: Shows true if the disk is write-accelerator enabled. :vartype write_accelerator_enabled: bool """ @@ -6682,10 +7014,10 @@ def __init__( ) -> None: """ :keyword managed_disk: Contains the managed disk details. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :keyword disk_restore_point: Contains Disk Restore Point properties. :paramtype disk_restore_point: - ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointAttributes + ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointAttributes """ super().__init__(**kwargs) self.lun = None @@ -6703,19 +7035,19 @@ class RestorePointSourceVMOSDisk(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar os_type: Gets the Operating System type. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemType + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemType :ivar encryption_settings: Gets the disk encryption settings. - :vartype encryption_settings: ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSettings + :vartype encryption_settings: ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSettings :ivar name: Gets the disk name. :vartype name: str :ivar caching: Gets the caching type. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar disk_size_gb: Gets the disk size in GB. :vartype disk_size_gb: int :ivar managed_disk: Gets the managed disk details. - :vartype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :vartype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :ivar disk_restore_point: Contains Disk Restore Point properties. - :vartype disk_restore_point: ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointAttributes + :vartype disk_restore_point: ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointAttributes :ivar write_accelerator_enabled: Shows true if the disk is write-accelerator enabled. :vartype write_accelerator_enabled: bool """ @@ -6749,10 +7081,10 @@ def __init__( ) -> None: """ :keyword managed_disk: Gets the managed disk details. - :paramtype managed_disk: ~azure.mgmt.compute.v2024_07_01.models.ManagedDiskParameters + :paramtype managed_disk: ~azure.mgmt.compute.v2024_11_01.models.ManagedDiskParameters :keyword disk_restore_point: Contains Disk Restore Point properties. :paramtype disk_restore_point: - ~azure.mgmt.compute.v2024_07_01.models.DiskRestorePointAttributes + ~azure.mgmt.compute.v2024_11_01.models.DiskRestorePointAttributes """ super().__init__(**kwargs) self.os_type = None @@ -6771,14 +7103,14 @@ class RestorePointSourceVMStorageProfile(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. - :vartype os_disk: ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMOSDisk + :vartype os_disk: ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMOSDisk :ivar data_disks: Gets the data disks of the VM captured at the time of the restore point creation. - :vartype data_disks: list[~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMDataDisk] + :vartype data_disks: list[~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMDataDisk] :ivar disk_controller_type: Gets the disk controller type of the VM captured at the time of the restore point creation. Known values are: "SCSI" and "NVMe". :vartype disk_controller_type: str or - ~azure.mgmt.compute.v2024_07_01.models.DiskControllerTypes + ~azure.mgmt.compute.v2024_11_01.models.DiskControllerTypes """ _validation = { @@ -6801,11 +7133,11 @@ def __init__( """ :keyword os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. - :paramtype os_disk: ~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMOSDisk + :paramtype os_disk: ~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMOSDisk :keyword data_disks: Gets the data disks of the VM captured at the time of the restore point creation. :paramtype data_disks: - list[~azure.mgmt.compute.v2024_07_01.models.RestorePointSourceVMDataDisk] + list[~azure.mgmt.compute.v2024_11_01.models.RestorePointSourceVMDataDisk] """ super().__init__(**kwargs) self.os_disk = os_disk @@ -6852,7 +7184,7 @@ class RollbackStatusInfo(_serialization.Model): :ivar failed_rolledback_instance_count: The number of instances which failed to rollback. :vartype failed_rolledback_instance_count: int :ivar rollback_error: Error details if OS rollback failed. - :vartype rollback_error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype rollback_error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -7037,12 +7369,12 @@ class RollingUpgradeRunningStatus(_serialization.Model): :ivar code: Code indicating the current status of the upgrade. Known values are: "RollingForward", "Cancelled", "Completed", and "Faulted". - :vartype code: str or ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeStatusCode + :vartype code: str or ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeStatusCode :ivar start_time: Start time of the upgrade. :vartype start_time: ~datetime.datetime :ivar last_action: The last action performed on the rolling upgrade. Known values are: "Start" and "Cancel". - :vartype last_action: str or ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeActionType + :vartype last_action: str or ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeActionType :ivar last_action_time: Last action time of the upgrade. :vartype last_action_time: ~datetime.datetime """ @@ -7088,14 +7420,14 @@ class RollingUpgradeStatusInfo(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar policy: The rolling upgrade policies applied for this upgrade. - :vartype policy: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradePolicy + :vartype policy: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradePolicy :ivar running_status: Information about the current running state of the overall upgrade. - :vartype running_status: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeRunningStatus + :vartype running_status: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeRunningStatus :ivar progress: Information about the number of virtual machine instances in each upgrade state. - :vartype progress: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeProgressInfo + :vartype progress: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeProgressInfo :ivar error: Error details for this upgrade, if there are any. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -7145,7 +7477,7 @@ class RunCommandDocumentBase(_serialization.Model): :ivar id: The VM run command id. Required. :vartype id: str :ivar os_type: The Operating System type. Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :ivar label: The VM run command label. Required. :vartype label: str :ivar description: The VM run command description. Required. @@ -7184,7 +7516,7 @@ def __init__( :keyword id: The VM run command id. Required. :paramtype id: str :keyword os_type: The Operating System type. Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :keyword label: The VM run command label. Required. :paramtype label: str :keyword description: The VM run command description. Required. @@ -7208,7 +7540,7 @@ class RunCommandDocument(RunCommandDocumentBase): :ivar id: The VM run command id. Required. :vartype id: str :ivar os_type: The Operating System type. Required. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :ivar label: The VM run command label. Required. :vartype label: str :ivar description: The VM run command description. Required. @@ -7216,7 +7548,7 @@ class RunCommandDocument(RunCommandDocumentBase): :ivar script: The script to be executed. Required. :vartype script: list[str] :ivar parameters: The parameters used by the script. - :vartype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandParameterDefinition] + :vartype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandParameterDefinition] """ _validation = { @@ -7256,7 +7588,7 @@ def __init__( :keyword id: The VM run command id. Required. :paramtype id: str :keyword os_type: The Operating System type. Required. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :keyword label: The VM run command label. Required. :paramtype label: str :keyword description: The VM run command description. Required. @@ -7265,7 +7597,7 @@ def __init__( :paramtype script: list[str] :keyword parameters: The parameters used by the script. :paramtype parameters: - list[~azure.mgmt.compute.v2024_07_01.models.RunCommandParameterDefinition] + list[~azure.mgmt.compute.v2024_11_01.models.RunCommandParameterDefinition] """ super().__init__(schema=schema, id=id, os_type=os_type, label=label, description=description, **kwargs) self.script = script @@ -7283,7 +7615,7 @@ class RunCommandInput(_serialization.Model): will override the default script of the command. :vartype script: list[str] :ivar parameters: The run command parameters. - :vartype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :vartype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] """ _validation = { @@ -7311,7 +7643,7 @@ def __init__( script will override the default script of the command. :paramtype script: list[str] :keyword parameters: The run command parameters. - :paramtype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :paramtype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] """ super().__init__(**kwargs) self.command_id = command_id @@ -7358,7 +7690,7 @@ class RunCommandListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of virtual machine run commands. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandDocumentBase] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandDocumentBase] :ivar next_link: The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. :vartype next_link: str @@ -7378,7 +7710,7 @@ def __init__( ) -> None: """ :keyword value: The list of virtual machine run commands. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandDocumentBase] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandDocumentBase] :keyword next_link: The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. :paramtype next_link: str @@ -7476,7 +7808,7 @@ class RunCommandResult(_serialization.Model): """RunCommandResult. :ivar value: Run command operation response. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -7486,7 +7818,7 @@ class RunCommandResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword value: Run command operation response. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.value = value @@ -7510,16 +7842,21 @@ class ScaleInPolicy(_serialization.Model): balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal. :code:`
`\\ :code:`
`. :vartype rules: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetScaleInRules] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetScaleInRules] :ivar force_deletion: This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview). :vartype force_deletion: bool + :ivar prioritize_unhealthy_v_ms: This property allows you to prioritize the deletion of + unhealthy and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in + Preview). + :vartype prioritize_unhealthy_v_ms: bool """ _attribute_map = { "rules": {"key": "rules", "type": "[str]"}, "force_deletion": {"key": "forceDeletion", "type": "bool"}, + "prioritize_unhealthy_v_ms": {"key": "prioritizeUnhealthyVMs", "type": "bool"}, } def __init__( @@ -7527,6 +7864,7 @@ def __init__( *, rules: Optional[List[Union[str, "_models.VirtualMachineScaleSetScaleInRules"]]] = None, force_deletion: Optional[bool] = None, + prioritize_unhealthy_v_ms: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -7545,15 +7883,20 @@ def __init__( balanced across zones. Within each zone, the newest virtual machines that are not protected will be chosen for removal. :code:`
`\\ :code:`
`. :paramtype rules: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetScaleInRules] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetScaleInRules] :keyword force_deletion: This property allows you to specify if virtual machines chosen for removal have to be force deleted when a virtual machine scale set is being scaled-in.(Feature in Preview). :paramtype force_deletion: bool + :keyword prioritize_unhealthy_v_ms: This property allows you to prioritize the deletion of + unhealthy and inactive VMs when a virtual machine scale set is being scaled-in.(Feature in + Preview). + :paramtype prioritize_unhealthy_v_ms: bool """ super().__init__(**kwargs) self.rules = rules self.force_deletion = force_deletion + self.prioritize_unhealthy_v_ms = prioritize_unhealthy_v_ms class ScheduledEventsAdditionalPublishingTargets(_serialization.Model): # pylint: disable=name-too-long @@ -7562,7 +7905,7 @@ class ScheduledEventsAdditionalPublishingTargets(_serialization.Model): # pylin :ivar event_grid_and_resource_graph: The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting. :vartype event_grid_and_resource_graph: - ~azure.mgmt.compute.v2024_07_01.models.EventGridAndResourceGraph + ~azure.mgmt.compute.v2024_11_01.models.EventGridAndResourceGraph """ _attribute_map = { @@ -7576,7 +7919,7 @@ def __init__( :keyword event_grid_and_resource_graph: The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting. :paramtype event_grid_and_resource_graph: - ~azure.mgmt.compute.v2024_07_01.models.EventGridAndResourceGraph + ~azure.mgmt.compute.v2024_11_01.models.EventGridAndResourceGraph """ super().__init__(**kwargs) self.event_grid_and_resource_graph = event_grid_and_resource_graph @@ -7588,14 +7931,14 @@ class ScheduledEventsPolicy(_serialization.Model): :ivar user_initiated_redeploy: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation. - :vartype user_initiated_redeploy: ~azure.mgmt.compute.v2024_07_01.models.UserInitiatedRedeploy + :vartype user_initiated_redeploy: ~azure.mgmt.compute.v2024_11_01.models.UserInitiatedRedeploy :ivar user_initiated_reboot: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation. - :vartype user_initiated_reboot: ~azure.mgmt.compute.v2024_07_01.models.UserInitiatedReboot + :vartype user_initiated_reboot: ~azure.mgmt.compute.v2024_11_01.models.UserInitiatedReboot :ivar scheduled_events_additional_publishing_targets: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets. :vartype scheduled_events_additional_publishing_targets: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsAdditionalPublishingTargets + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsAdditionalPublishingTargets """ _attribute_map = { @@ -7621,14 +7964,14 @@ def __init__( :keyword user_initiated_redeploy: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation. :paramtype user_initiated_redeploy: - ~azure.mgmt.compute.v2024_07_01.models.UserInitiatedRedeploy + ~azure.mgmt.compute.v2024_11_01.models.UserInitiatedRedeploy :keyword user_initiated_reboot: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation. - :paramtype user_initiated_reboot: ~azure.mgmt.compute.v2024_07_01.models.UserInitiatedReboot + :paramtype user_initiated_reboot: ~azure.mgmt.compute.v2024_11_01.models.UserInitiatedReboot :keyword scheduled_events_additional_publishing_targets: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets. :paramtype scheduled_events_additional_publishing_targets: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsAdditionalPublishingTargets + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsAdditionalPublishingTargets """ super().__init__(**kwargs) self.user_initiated_redeploy = user_initiated_redeploy @@ -7642,10 +7985,10 @@ class ScheduledEventsProfile(_serialization.Model): :ivar terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. :vartype terminate_notification_profile: - ~azure.mgmt.compute.v2024_07_01.models.TerminateNotificationProfile + ~azure.mgmt.compute.v2024_11_01.models.TerminateNotificationProfile :ivar os_image_notification_profile: Specifies OS Image Scheduled Event related configurations. :vartype os_image_notification_profile: - ~azure.mgmt.compute.v2024_07_01.models.OSImageNotificationProfile + ~azure.mgmt.compute.v2024_11_01.models.OSImageNotificationProfile """ _attribute_map = { @@ -7667,11 +8010,11 @@ def __init__( :keyword terminate_notification_profile: Specifies Terminate Scheduled Event related configurations. :paramtype terminate_notification_profile: - ~azure.mgmt.compute.v2024_07_01.models.TerminateNotificationProfile + ~azure.mgmt.compute.v2024_11_01.models.TerminateNotificationProfile :keyword os_image_notification_profile: Specifies OS Image Scheduled Event related configurations. :paramtype os_image_notification_profile: - ~azure.mgmt.compute.v2024_07_01.models.OSImageNotificationProfile + ~azure.mgmt.compute.v2024_11_01.models.OSImageNotificationProfile """ super().__init__(**kwargs) self.terminate_notification_profile = terminate_notification_profile @@ -7777,7 +8120,7 @@ class SecurityProfile(_serialization.Model): :ivar uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. - :vartype uefi_settings: ~azure.mgmt.compute.v2024_07_01.models.UefiSettings + :vartype uefi_settings: ~azure.mgmt.compute.v2024_11_01.models.UefiSettings :ivar encryption_at_host: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior @@ -7787,13 +8130,13 @@ class SecurityProfile(_serialization.Model): :ivar security_type: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set. Known values are: "TrustedLaunch" and "ConfidentialVM". - :vartype security_type: str or ~azure.mgmt.compute.v2024_07_01.models.SecurityTypes + :vartype security_type: str or ~azure.mgmt.compute.v2024_11_01.models.SecurityTypes :ivar encryption_identity: Specifies the Managed Identity used by ADE to get access token for keyvault operations. - :vartype encryption_identity: ~azure.mgmt.compute.v2024_07_01.models.EncryptionIdentity + :vartype encryption_identity: ~azure.mgmt.compute.v2024_11_01.models.EncryptionIdentity :ivar proxy_agent_settings: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01. - :vartype proxy_agent_settings: ~azure.mgmt.compute.v2024_07_01.models.ProxyAgentSettings + :vartype proxy_agent_settings: ~azure.mgmt.compute.v2024_11_01.models.ProxyAgentSettings """ _attribute_map = { @@ -7817,7 +8160,7 @@ def __init__( """ :keyword uefi_settings: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. - :paramtype uefi_settings: ~azure.mgmt.compute.v2024_07_01.models.UefiSettings + :paramtype uefi_settings: ~azure.mgmt.compute.v2024_11_01.models.UefiSettings :keyword encryption_at_host: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The @@ -7827,13 +8170,13 @@ def __init__( :keyword security_type: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set. Known values are: "TrustedLaunch" and "ConfidentialVM". - :paramtype security_type: str or ~azure.mgmt.compute.v2024_07_01.models.SecurityTypes + :paramtype security_type: str or ~azure.mgmt.compute.v2024_11_01.models.SecurityTypes :keyword encryption_identity: Specifies the Managed Identity used by ADE to get access token for keyvault operations. - :paramtype encryption_identity: ~azure.mgmt.compute.v2024_07_01.models.EncryptionIdentity + :paramtype encryption_identity: ~azure.mgmt.compute.v2024_11_01.models.EncryptionIdentity :keyword proxy_agent_settings: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01. - :paramtype proxy_agent_settings: ~azure.mgmt.compute.v2024_07_01.models.ProxyAgentSettings + :paramtype proxy_agent_settings: ~azure.mgmt.compute.v2024_11_01.models.ProxyAgentSettings """ super().__init__(**kwargs) self.uefi_settings = uefi_settings @@ -7911,11 +8254,11 @@ class SkuProfile(_serialization.Model): able to specify a list of VM sizes and an allocation strategy. :ivar vm_sizes: Specifies the VM sizes for the virtual machine scale set. - :vartype vm_sizes: list[~azure.mgmt.compute.v2024_07_01.models.SkuProfileVMSize] + :vartype vm_sizes: list[~azure.mgmt.compute.v2024_11_01.models.SkuProfileVMSize] :ivar allocation_strategy: Specifies the allocation strategy for the virtual machine scale set - based on which the VMs will be allocated. Known values are: "LowestPrice" and - "CapacityOptimized". - :vartype allocation_strategy: str or ~azure.mgmt.compute.v2024_07_01.models.AllocationStrategy + based on which the VMs will be allocated. Known values are: "LowestPrice", "CapacityOptimized", + and "Prioritized". + :vartype allocation_strategy: str or ~azure.mgmt.compute.v2024_11_01.models.AllocationStrategy """ _attribute_map = { @@ -7932,12 +8275,12 @@ def __init__( ) -> None: """ :keyword vm_sizes: Specifies the VM sizes for the virtual machine scale set. - :paramtype vm_sizes: list[~azure.mgmt.compute.v2024_07_01.models.SkuProfileVMSize] + :paramtype vm_sizes: list[~azure.mgmt.compute.v2024_11_01.models.SkuProfileVMSize] :keyword allocation_strategy: Specifies the allocation strategy for the virtual machine scale - set based on which the VMs will be allocated. Known values are: "LowestPrice" and - "CapacityOptimized". + set based on which the VMs will be allocated. Known values are: "LowestPrice", + "CapacityOptimized", and "Prioritized". :paramtype allocation_strategy: str or - ~azure.mgmt.compute.v2024_07_01.models.AllocationStrategy + ~azure.mgmt.compute.v2024_11_01.models.AllocationStrategy """ super().__init__(**kwargs) self.vm_sizes = vm_sizes @@ -7949,19 +8292,29 @@ class SkuProfileVMSize(_serialization.Model): :ivar name: Specifies the name of the VM Size. :vartype name: str + :ivar rank: Specifies the rank (a.k.a priority) associated with the VM Size. + :vartype rank: int """ + _validation = { + "rank": {"minimum": 0}, + } + _attribute_map = { "name": {"key": "name", "type": "str"}, + "rank": {"key": "rank", "type": "int"}, } - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: + def __init__(self, *, name: Optional[str] = None, rank: Optional[int] = None, **kwargs: Any) -> None: """ :keyword name: Specifies the name of the VM Size. :paramtype name: str + :keyword rank: Specifies the rank (a.k.a priority) associated with the VM Size. + :paramtype rank: int """ super().__init__(**kwargs) self.name = name + self.rank = rank class SpotRestorePolicy(_serialization.Model): @@ -8001,7 +8354,7 @@ class SshConfiguration(_serialization.Model): """SSH configuration for Linux based VMs running on Azure. :ivar public_keys: The list of SSH public keys used to authenticate with linux based VMs. - :vartype public_keys: list[~azure.mgmt.compute.v2024_07_01.models.SshPublicKey] + :vartype public_keys: list[~azure.mgmt.compute.v2024_11_01.models.SshPublicKey] """ _attribute_map = { @@ -8011,7 +8364,7 @@ class SshConfiguration(_serialization.Model): def __init__(self, *, public_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword public_keys: The list of SSH public keys used to authenticate with linux based VMs. - :paramtype public_keys: list[~azure.mgmt.compute.v2024_07_01.models.SshPublicKey] + :paramtype public_keys: list[~azure.mgmt.compute.v2024_11_01.models.SshPublicKey] """ super().__init__(**kwargs) self.public_keys = public_keys @@ -8023,7 +8376,7 @@ class SshGenerateKeyPairInputParameters(_serialization.Model): :ivar encryption_type: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA. Known values are: "RSA" and "Ed25519". - :vartype encryption_type: str or ~azure.mgmt.compute.v2024_07_01.models.SshEncryptionTypes + :vartype encryption_type: str or ~azure.mgmt.compute.v2024_11_01.models.SshEncryptionTypes """ _attribute_map = { @@ -8037,7 +8390,7 @@ def __init__( :keyword encryption_type: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA. Known values are: "RSA" and "Ed25519". - :paramtype encryption_type: str or ~azure.mgmt.compute.v2024_07_01.models.SshEncryptionTypes + :paramtype encryption_type: str or ~azure.mgmt.compute.v2024_11_01.models.SshEncryptionTypes """ super().__init__(**kwargs) self.encryption_type = encryption_type @@ -8196,7 +8549,7 @@ class SshPublicKeysGroupListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of SSH public keys. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :ivar next_link: The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys. :vartype next_link: str @@ -8216,7 +8569,7 @@ def __init__( ) -> None: """ :keyword value: The list of SSH public keys. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :keyword next_link: The URI to fetch the next page of SSH public keys. Call ListNext() with this URI to fetch the next page of SSH public keys. :paramtype next_link: str @@ -8266,15 +8619,15 @@ class StorageProfile(_serialization.Model): information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. - :vartype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :vartype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :ivar os_disk: Specifies information about the operating system disk used by the virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: ~azure.mgmt.compute.v2024_07_01.models.OSDisk + :vartype os_disk: ~azure.mgmt.compute.v2024_11_01.models.OSDisk :ivar data_disks: Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype data_disks: list[~azure.mgmt.compute.v2024_07_01.models.DataDisk] + :vartype data_disks: list[~azure.mgmt.compute.v2024_11_01.models.DataDisk] :ivar disk_controller_type: Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the @@ -8283,7 +8636,11 @@ class StorageProfile(_serialization.Model): in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". :vartype disk_controller_type: str or - ~azure.mgmt.compute.v2024_07_01.models.DiskControllerTypes + ~azure.mgmt.compute.v2024_11_01.models.DiskControllerTypes + :ivar align_regional_disks_to_vm_zone: Specifies whether the regional disks should be + aligned/moved to the VM zone. This is applicable only for VMs with placement property set. + Please note that this change is irreversible. Minimum api-version: 2024-11-01. + :vartype align_regional_disks_to_vm_zone: bool """ _attribute_map = { @@ -8291,6 +8648,7 @@ class StorageProfile(_serialization.Model): "os_disk": {"key": "osDisk", "type": "OSDisk"}, "data_disks": {"key": "dataDisks", "type": "[DataDisk]"}, "disk_controller_type": {"key": "diskControllerType", "type": "str"}, + "align_regional_disks_to_vm_zone": {"key": "alignRegionalDisksToVMZone", "type": "bool"}, } def __init__( @@ -8300,6 +8658,7 @@ def __init__( os_disk: Optional["_models.OSDisk"] = None, data_disks: Optional[List["_models.DataDisk"]] = None, disk_controller_type: Optional[Union[str, "_models.DiskControllerTypes"]] = None, + align_regional_disks_to_vm_zone: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -8307,15 +8666,15 @@ def __init__( information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. - :paramtype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :paramtype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :keyword os_disk: Specifies information about the operating system disk used by the virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :paramtype os_disk: ~azure.mgmt.compute.v2024_07_01.models.OSDisk + :paramtype os_disk: ~azure.mgmt.compute.v2024_11_01.models.OSDisk :keyword data_disks: Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :paramtype data_disks: list[~azure.mgmt.compute.v2024_07_01.models.DataDisk] + :paramtype data_disks: list[~azure.mgmt.compute.v2024_11_01.models.DataDisk] :keyword disk_controller_type: Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the @@ -8324,13 +8683,18 @@ def __init__( updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01. Known values are: "SCSI" and "NVMe". :paramtype disk_controller_type: str or - ~azure.mgmt.compute.v2024_07_01.models.DiskControllerTypes + ~azure.mgmt.compute.v2024_11_01.models.DiskControllerTypes + :keyword align_regional_disks_to_vm_zone: Specifies whether the regional disks should be + aligned/moved to the VM zone. This is applicable only for VMs with placement property set. + Please note that this change is irreversible. Minimum api-version: 2024-11-01. + :paramtype align_regional_disks_to_vm_zone: bool """ super().__init__(**kwargs) self.image_reference = image_reference self.os_disk = os_disk self.data_disks = data_disks self.disk_controller_type = disk_controller_type + self.align_regional_disks_to_vm_zone = align_regional_disks_to_vm_zone class SubResourceWithColocationStatus(SubResource): @@ -8340,7 +8704,7 @@ class SubResourceWithColocationStatus(SubResource): :vartype id: str :ivar colocation_status: Describes colocation status of a resource in the Proximity Placement Group. - :vartype colocation_status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype colocation_status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ _attribute_map = { @@ -8360,7 +8724,7 @@ def __init__( :paramtype id: str :keyword colocation_status: Describes colocation status of a resource in the Proximity Placement Group. - :paramtype colocation_status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :paramtype colocation_status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ super().__init__(id=id, **kwargs) self.colocation_status = colocation_status @@ -8495,7 +8859,7 @@ class UpgradeOperationHistoricalStatusInfo(_serialization.Model): :ivar properties: Information about the properties of the upgrade operation. :vartype properties: - ~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoricalStatusInfoProperties + ~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoricalStatusInfoProperties :ivar type: Resource type. :vartype type: str :ivar location: Resource location. @@ -8528,18 +8892,18 @@ class UpgradeOperationHistoricalStatusInfoProperties(_serialization.Model): # p Variables are only populated by the server, and will be ignored when sending a request. :ivar running_status: Information about the overall status of the upgrade operation. - :vartype running_status: ~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoryStatus + :vartype running_status: ~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoryStatus :ivar progress: Counts of the VMs in each state. - :vartype progress: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeProgressInfo + :vartype progress: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeProgressInfo :ivar error: Error Details for this upgrade if there are any. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError :ivar started_by: Invoker of the Upgrade Operation. Known values are: "Unknown", "User", and "Platform". - :vartype started_by: str or ~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationInvoker + :vartype started_by: str or ~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationInvoker :ivar target_image_reference: Image Reference details. - :vartype target_image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :vartype target_image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :ivar rollback_info: Information about OS rollback if performed. - :vartype rollback_info: ~azure.mgmt.compute.v2024_07_01.models.RollbackStatusInfo + :vartype rollback_info: ~azure.mgmt.compute.v2024_11_01.models.RollbackStatusInfo """ _validation = { @@ -8578,7 +8942,7 @@ class UpgradeOperationHistoryStatus(_serialization.Model): :ivar code: Code indicating the current status of the upgrade. Known values are: "RollingForward", "Cancelled", "Completed", and "Faulted". - :vartype code: str or ~azure.mgmt.compute.v2024_07_01.models.UpgradeState + :vartype code: str or ~azure.mgmt.compute.v2024_11_01.models.UpgradeState :ivar start_time: Start time of the upgrade. :vartype start_time: ~datetime.datetime :ivar end_time: End time of the upgrade. @@ -8614,14 +8978,14 @@ class UpgradePolicy(_serialization.Model): the manualUpgrade action.\\ :code:`
`\\ :code:`
` **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Known values are: "Automatic", "Manual", and "Rolling". - :vartype mode: str or ~azure.mgmt.compute.v2024_07_01.models.UpgradeMode + :vartype mode: str or ~azure.mgmt.compute.v2024_11_01.models.UpgradeMode :ivar rolling_upgrade_policy: The configuration parameters used while performing a rolling upgrade. - :vartype rolling_upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradePolicy + :vartype rolling_upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradePolicy :ivar automatic_os_upgrade_policy: Configuration parameters used for performing automatic OS Upgrade. :vartype automatic_os_upgrade_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticOSUpgradePolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticOSUpgradePolicy """ _attribute_map = { @@ -8645,14 +9009,14 @@ def __init__( do this by using the manualUpgrade action.\\ :code:`
`\\ :code:`
` **Automatic** - All virtual machines in the scale set are automatically updated at the same time. Known values are: "Automatic", "Manual", and "Rolling". - :paramtype mode: str or ~azure.mgmt.compute.v2024_07_01.models.UpgradeMode + :paramtype mode: str or ~azure.mgmt.compute.v2024_11_01.models.UpgradeMode :keyword rolling_upgrade_policy: The configuration parameters used while performing a rolling upgrade. - :paramtype rolling_upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradePolicy + :paramtype rolling_upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradePolicy :keyword automatic_os_upgrade_policy: Configuration parameters used for performing automatic OS Upgrade. :paramtype automatic_os_upgrade_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticOSUpgradePolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticOSUpgradePolicy """ super().__init__(**kwargs) self.mode = mode @@ -8675,7 +9039,7 @@ class Usage(_serialization.Model): :ivar limit: The maximum permitted usage of the resource. Required. :vartype limit: int :ivar name: The name of the type of usage. Required. - :vartype name: ~azure.mgmt.compute.v2024_07_01.models.UsageName + :vartype name: ~azure.mgmt.compute.v2024_11_01.models.UsageName """ _validation = { @@ -8701,7 +9065,7 @@ def __init__(self, *, current_value: int, limit: int, name: "_models.UsageName", :keyword limit: The maximum permitted usage of the resource. Required. :paramtype limit: int :keyword name: The name of the type of usage. Required. - :paramtype name: ~azure.mgmt.compute.v2024_07_01.models.UsageName + :paramtype name: ~azure.mgmt.compute.v2024_11_01.models.UsageName """ super().__init__(**kwargs) self.current_value = current_value @@ -8869,10 +9233,10 @@ class VaultSecretGroup(_serialization.Model): :ivar source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. - :vartype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar vault_certificates: The list of key vault references in SourceVault which contain certificates. - :vartype vault_certificates: list[~azure.mgmt.compute.v2024_07_01.models.VaultCertificate] + :vartype vault_certificates: list[~azure.mgmt.compute.v2024_11_01.models.VaultCertificate] """ _attribute_map = { @@ -8890,10 +9254,10 @@ def __init__( """ :keyword source_vault: The relative URL of the Key Vault containing all of the certificates in VaultCertificates. - :paramtype source_vault: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype source_vault: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword vault_certificates: The list of key vault references in SourceVault which contain certificates. - :paramtype vault_certificates: list[~azure.mgmt.compute.v2024_07_01.models.VaultCertificate] + :paramtype vault_certificates: list[~azure.mgmt.compute.v2024_11_01.models.VaultCertificate] """ super().__init__(**kwargs) self.source_vault = source_vault @@ -8942,15 +9306,15 @@ class VirtualMachine(Resource): image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :ivar resources: The virtual machine child extension resources. - :vartype resources: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + :vartype resources: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :ivar identity: The identity of the virtual machine, if configured. - :vartype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :vartype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :ivar zones: The virtual machine zones. :vartype zones: list[str] :ivar extended_location: The extended location of the Virtual Machine. - :vartype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :ivar managed_by: ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization. @@ -8958,28 +9322,32 @@ class VirtualMachine(Resource): :ivar etag: Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates. :vartype etag: str + :ivar placement: Placement section specifies the user-defined constraints for virtual machine + hardware placement. This property cannot be changed once VM is provisioned. Minimum + api-version: 2024-11-01. + :vartype placement: ~azure.mgmt.compute.v2024_11_01.models.Placement :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile :ivar scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. - :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine. - :vartype additional_capabilities: ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + :vartype additional_capabilities: ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :ivar os_profile: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :ivar security_profile: Specifies the Security related profile settings for the virtual machine. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -8991,41 +9359,41 @@ class VirtualMachine(Resource): VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - :vartype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar virtual_machine_scale_set: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. - :vartype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar proximity_placement_group: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar priority: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values are: "Regular", "Low", and "Spot". - :vartype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :vartype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :vartype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :ivar billing_profile: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. - :vartype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :vartype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :ivar host: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. - :vartype host: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype host: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar host_group: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. - :vartype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstanceView :ivar license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -9055,17 +9423,17 @@ class VirtualMachine(Resource): :vartype platform_fault_domain: int :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. :vartype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :vartype user_data: str :ivar capacity_reservation: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. :vartype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :ivar application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :vartype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile :ivar time_created: Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -9098,6 +9466,7 @@ class VirtualMachine(Resource): "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, "managed_by": {"key": "managedBy", "type": "str"}, "etag": {"key": "etag", "type": "str"}, + "placement": {"key": "placement", "type": "Placement"}, "hardware_profile": {"key": "properties.hardwareProfile", "type": "HardwareProfile"}, "scheduled_events_policy": {"key": "properties.scheduledEventsPolicy", "type": "ScheduledEventsPolicy"}, "storage_profile": {"key": "properties.storageProfile", "type": "StorageProfile"}, @@ -9136,6 +9505,7 @@ def __init__( # pylint: disable=too-many-locals identity: Optional["_models.VirtualMachineIdentity"] = None, zones: Optional[List[str]] = None, extended_location: Optional["_models.ExtendedLocation"] = None, + placement: Optional["_models.Placement"] = None, hardware_profile: Optional["_models.HardwareProfile"] = None, scheduled_events_policy: Optional["_models.ScheduledEventsPolicy"] = None, storage_profile: Optional["_models.StorageProfile"] = None, @@ -9171,37 +9541,41 @@ def __init__( # pylint: disable=too-many-locals image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :keyword identity: The identity of the virtual machine, if configured. - :paramtype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :paramtype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :keyword zones: The virtual machine zones. :paramtype zones: list[str] :keyword extended_location: The extended location of the Virtual Machine. - :paramtype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation + :keyword placement: Placement section specifies the user-defined constraints for virtual + machine hardware placement. This property cannot be changed once VM is provisioned. Minimum + api-version: 2024-11-01. + :paramtype placement: ~azure.mgmt.compute.v2024_11_01.models.Placement :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile :keyword scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. :paramtype scheduled_events_policy: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :keyword additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :keyword os_profile: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :keyword security_profile: Specifies the Security related profile settings for the virtual machine. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :keyword diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :keyword availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -9213,37 +9587,37 @@ def __init__( # pylint: disable=too-many-locals VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - :paramtype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword virtual_machine_scale_set: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. - :paramtype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword proximity_placement_group: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword priority: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values are: "Regular", "Low", and "Spot". - :paramtype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :paramtype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :keyword eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :paramtype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :keyword billing_profile: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. - :paramtype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :paramtype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :keyword host: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. - :paramtype host: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype host: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword host_group: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. - :paramtype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -9270,17 +9644,17 @@ def __init__( # pylint: disable=too-many-locals :paramtype platform_fault_domain: int :keyword scheduled_events_profile: Specifies Scheduled Event related configurations. :paramtype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :keyword user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :paramtype user_data: str :keyword capacity_reservation: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. :paramtype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :keyword application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :paramtype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :paramtype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile """ super().__init__(location=location, tags=tags, **kwargs) self.plan = plan @@ -9290,6 +9664,7 @@ def __init__( # pylint: disable=too-many-locals self.extended_location = extended_location self.managed_by = None self.etag = None + self.placement = placement self.hardware_profile = hardware_profile self.scheduled_events_policy = scheduled_events_policy self.storage_profile = storage_profile @@ -9326,9 +9701,9 @@ class VirtualMachineAgentInstanceView(_serialization.Model): :vartype vm_agent_version: str :ivar extension_handlers: The virtual machine extension handler instance view. :vartype extension_handlers: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionHandlerInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionHandlerInstanceView] :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -9350,9 +9725,9 @@ def __init__( :paramtype vm_agent_version: str :keyword extension_handlers: The virtual machine extension handler instance view. :paramtype extension_handlers: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionHandlerInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionHandlerInstanceView] :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.vm_agent_version = vm_agent_version @@ -9369,7 +9744,7 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.compute.v2024_07_01.models.PatchOperationStatus + :vartype status: str or ~azure.mgmt.compute.v2024_11_01.models.PatchOperationStatus :ivar assessment_activity_id: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. :vartype assessment_activity_id: str @@ -9387,10 +9762,10 @@ class VirtualMachineAssessPatchesResult(_serialization.Model): :ivar available_patches: The list of patches that have been detected as available for installation. :vartype available_patches: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSoftwarePatchProperties] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSoftwarePatchProperties] :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -9557,7 +9932,7 @@ class VirtualMachineExtension(ResourceWithOptionalLocation): :vartype provisioning_state: str :ivar instance_view: The virtual machine extension instance view. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView :ivar suppress_failures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. @@ -9565,7 +9940,7 @@ class VirtualMachineExtension(ResourceWithOptionalLocation): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :ivar provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :vartype provision_after_extensions: list[str] @@ -9650,7 +10025,7 @@ def __init__( :paramtype protected_settings: JSON :keyword instance_view: The virtual machine extension instance view. :paramtype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView :keyword suppress_failures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. @@ -9658,7 +10033,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :keyword provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :paramtype provision_after_extensions: list[str] @@ -9687,7 +10062,7 @@ class VirtualMachineExtensionHandlerInstanceView(_serialization.Model): # pylin :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar status: The extension handler status. - :vartype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ _attribute_map = { @@ -9710,7 +10085,7 @@ def __init__( :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str :keyword status: The extension handler status. - :paramtype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :paramtype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ super().__init__(**kwargs) self.type = type @@ -9819,9 +10194,9 @@ class VirtualMachineExtensionInstanceView(_serialization.Model): :ivar type_handler_version: Specifies the version of the script handler. :vartype type_handler_version: str :ivar substatuses: The resource status information. - :vartype substatuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype substatuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -9850,9 +10225,9 @@ def __init__( :keyword type_handler_version: Specifies the version of the script handler. :paramtype type_handler_version: str :keyword substatuses: The resource status information. - :paramtype substatuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype substatuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.name = name @@ -9866,7 +10241,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): """The List Extension operation response. :ivar value: The list of extensions. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] """ _attribute_map = { @@ -9876,7 +10251,7 @@ class VirtualMachineExtensionsListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.VirtualMachineExtension"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of extensions. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] """ super().__init__(**kwargs) self.value = value @@ -9915,7 +10290,7 @@ class VirtualMachineExtensionUpdate(UpdateResource): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ _attribute_map = { @@ -9982,7 +10357,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ super().__init__(tags=tags, **kwargs) self.force_update_tag = force_update_tag @@ -10003,7 +10378,7 @@ class VirtualMachineHealthStatus(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar status: The health status information for the VM. - :vartype status: ~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus + :vartype status: ~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus """ _validation = { @@ -10035,12 +10410,12 @@ class VirtualMachineIdentity(_serialization.Model): UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :vartype type: str or ~azure.mgmt.compute.v2024_07_01.models.ResourceIdentityType + :vartype type: str or ~azure.mgmt.compute.v2024_11_01.models.ResourceIdentityType :ivar user_assigned_identities: The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. # pylint: disable=line-too-long :vartype user_assigned_identities: dict[str, - ~azure.mgmt.compute.v2024_07_01.models.UserAssignedIdentitiesValue] + ~azure.mgmt.compute.v2024_11_01.models.UserAssignedIdentitiesValue] """ _validation = { @@ -10067,12 +10442,12 @@ def __init__( UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :paramtype type: str or ~azure.mgmt.compute.v2024_07_01.models.ResourceIdentityType + :paramtype type: str or ~azure.mgmt.compute.v2024_11_01.models.ResourceIdentityType :keyword user_assigned_identities: The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. # pylint: disable=line-too-long :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.compute.v2024_07_01.models.UserAssignedIdentitiesValue] + ~azure.mgmt.compute.v2024_11_01.models.UserAssignedIdentitiesValue] """ super().__init__(**kwargs) self.principal_id = None @@ -10097,7 +10472,7 @@ class VirtualMachineImageResource(SubResource): `_. :vartype tags: dict[str, str] :ivar extended_location: The extended location of the Virtual Machine. - :vartype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation """ _validation = { @@ -10135,7 +10510,7 @@ def __init__( `_. :paramtype tags: dict[str, str] :keyword extended_location: The extended location of the Virtual Machine. - :paramtype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation """ super().__init__(id=id, **kwargs) self.name = name @@ -10160,30 +10535,30 @@ class VirtualMachineImage(VirtualMachineImageResource): `_. :vartype tags: dict[str, str] :ivar extended_location: The extended location of the Virtual Machine. - :vartype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :ivar plan: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.PurchasePlan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.PurchasePlan :ivar os_disk_image: Contains the os disk image information. - :vartype os_disk_image: ~azure.mgmt.compute.v2024_07_01.models.OSDiskImage + :vartype os_disk_image: ~azure.mgmt.compute.v2024_11_01.models.OSDiskImage :ivar data_disk_images: - :vartype data_disk_images: list[~azure.mgmt.compute.v2024_07_01.models.DataDiskImage] + :vartype data_disk_images: list[~azure.mgmt.compute.v2024_11_01.models.DataDiskImage] :ivar automatic_os_upgrade_properties: Describes automatic OS upgrade properties on the image. :vartype automatic_os_upgrade_properties: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticOSUpgradeProperties + ~azure.mgmt.compute.v2024_11_01.models.AutomaticOSUpgradeProperties :ivar hyper_v_generation: Specifies the HyperVGeneration Type. Known values are: "V1" and "V2". :vartype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes :ivar disallowed: Specifies disallowed configuration for the VirtualMachine created from the image. - :vartype disallowed: ~azure.mgmt.compute.v2024_07_01.models.DisallowedConfiguration + :vartype disallowed: ~azure.mgmt.compute.v2024_11_01.models.DisallowedConfiguration :ivar features: - :vartype features: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageFeature] + :vartype features: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageFeature] :ivar architecture: Specifies the Architecture Type. Known values are: "x64" and "Arm64". - :vartype architecture: str or ~azure.mgmt.compute.v2024_07_01.models.ArchitectureTypes + :vartype architecture: str or ~azure.mgmt.compute.v2024_11_01.models.ArchitectureTypes :ivar image_deprecation_status: Describes image deprecation status properties on the image. :vartype image_deprecation_status: - ~azure.mgmt.compute.v2024_07_01.models.ImageDeprecationStatus + ~azure.mgmt.compute.v2024_11_01.models.ImageDeprecationStatus """ _validation = { @@ -10242,32 +10617,32 @@ def __init__( `_. :paramtype tags: dict[str, str] :keyword extended_location: The extended location of the Virtual Machine. - :paramtype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :keyword plan: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.PurchasePlan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.PurchasePlan :keyword os_disk_image: Contains the os disk image information. - :paramtype os_disk_image: ~azure.mgmt.compute.v2024_07_01.models.OSDiskImage + :paramtype os_disk_image: ~azure.mgmt.compute.v2024_11_01.models.OSDiskImage :keyword data_disk_images: - :paramtype data_disk_images: list[~azure.mgmt.compute.v2024_07_01.models.DataDiskImage] + :paramtype data_disk_images: list[~azure.mgmt.compute.v2024_11_01.models.DataDiskImage] :keyword automatic_os_upgrade_properties: Describes automatic OS upgrade properties on the image. :paramtype automatic_os_upgrade_properties: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticOSUpgradeProperties + ~azure.mgmt.compute.v2024_11_01.models.AutomaticOSUpgradeProperties :keyword hyper_v_generation: Specifies the HyperVGeneration Type. Known values are: "V1" and "V2". :paramtype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationTypes + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationTypes :keyword disallowed: Specifies disallowed configuration for the VirtualMachine created from the image. - :paramtype disallowed: ~azure.mgmt.compute.v2024_07_01.models.DisallowedConfiguration + :paramtype disallowed: ~azure.mgmt.compute.v2024_11_01.models.DisallowedConfiguration :keyword features: - :paramtype features: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageFeature] + :paramtype features: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageFeature] :keyword architecture: Specifies the Architecture Type. Known values are: "x64" and "Arm64". - :paramtype architecture: str or ~azure.mgmt.compute.v2024_07_01.models.ArchitectureTypes + :paramtype architecture: str or ~azure.mgmt.compute.v2024_11_01.models.ArchitectureTypes :keyword image_deprecation_status: Describes image deprecation status properties on the image. :paramtype image_deprecation_status: - ~azure.mgmt.compute.v2024_07_01.models.ImageDeprecationStatus + ~azure.mgmt.compute.v2024_11_01.models.ImageDeprecationStatus """ super().__init__(id=id, name=name, location=location, tags=tags, extended_location=extended_location, **kwargs) self.plan = plan @@ -10307,6 +10682,40 @@ def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, * self.value = value +class VirtualMachineImagesWithPropertiesListResult(_serialization.Model): # pylint: disable=name-too-long + """The List Virtual Machine Images operation response. + + :ivar value: The list of virtual machine images. + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage] + :ivar next_link: The URI to fetch the next page of virtual machine images. Call ListNext() with + this URI to fetch the next page of virtual machine images. + :vartype next_link: str + """ + + _attribute_map = { + "value": {"key": "value", "type": "[VirtualMachineImage]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } + + def __init__( + self, + *, + value: Optional[List["_models.VirtualMachineImage"]] = None, + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword value: The list of virtual machine images. + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage] + :keyword next_link: The URI to fetch the next page of virtual machine images. Call ListNext() + with this URI to fetch the next page of virtual machine images. + :paramtype next_link: str + """ + super().__init__(**kwargs) + self.value = value + self.next_link = next_link + + class VirtualMachineInstallPatchesParameters(_serialization.Model): """Input for InstallPatches as directly received by the API. @@ -10318,13 +10727,13 @@ class VirtualMachineInstallPatchesParameters(_serialization.Model): :ivar reboot_setting: Defines when it is acceptable to reboot a VM during a software update operation. Required. Known values are: "IfRequired", "Never", and "Always". :vartype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchRebootSetting :ivar windows_parameters: Input for InstallPatches on a Windows VM, as directly received by the API. - :vartype windows_parameters: ~azure.mgmt.compute.v2024_07_01.models.WindowsParameters + :vartype windows_parameters: ~azure.mgmt.compute.v2024_11_01.models.WindowsParameters :ivar linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the API. - :vartype linux_parameters: ~azure.mgmt.compute.v2024_07_01.models.LinuxParameters + :vartype linux_parameters: ~azure.mgmt.compute.v2024_11_01.models.LinuxParameters """ _validation = { @@ -10354,13 +10763,13 @@ def __init__( :keyword reboot_setting: Defines when it is acceptable to reboot a VM during a software update operation. Required. Known values are: "IfRequired", "Never", and "Always". :paramtype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchRebootSetting :keyword windows_parameters: Input for InstallPatches on a Windows VM, as directly received by the API. - :paramtype windows_parameters: ~azure.mgmt.compute.v2024_07_01.models.WindowsParameters + :paramtype windows_parameters: ~azure.mgmt.compute.v2024_11_01.models.WindowsParameters :keyword linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the API. - :paramtype linux_parameters: ~azure.mgmt.compute.v2024_07_01.models.LinuxParameters + :paramtype linux_parameters: ~azure.mgmt.compute.v2024_11_01.models.LinuxParameters """ super().__init__(**kwargs) self.maximum_duration = maximum_duration @@ -10378,13 +10787,13 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or "CompletedWithWarnings.". Known values are: "Unknown", "InProgress", "Failed", "Succeeded", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.compute.v2024_07_01.models.PatchOperationStatus + :vartype status: str or ~azure.mgmt.compute.v2024_11_01.models.PatchOperationStatus :ivar installation_activity_id: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. :vartype installation_activity_id: str :ivar reboot_status: The reboot state of the VM following completion of the operation. Known values are: "Unknown", "NotNeeded", "Required", "Started", "Failed", and "Completed". - :vartype reboot_status: str or ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchRebootStatus + :vartype reboot_status: str or ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchRebootStatus :ivar maintenance_window_exceeded: Whether the operation ran out of time before it completed all its intended actions. :vartype maintenance_window_exceeded: bool @@ -10404,12 +10813,12 @@ class VirtualMachineInstallPatchesResult(_serialization.Model): See errors for details. :vartype failed_patch_count: int :ivar patches: The patches that were installed during the operation. - :vartype patches: list[~azure.mgmt.compute.v2024_07_01.models.PatchInstallationDetail] + :vartype patches: list[~azure.mgmt.compute.v2024_11_01.models.PatchInstallationDetail] :ivar start_date_time: The UTC timestamp when the operation began. :vartype start_date_time: ~datetime.datetime :ivar error: The errors that were encountered during execution of the operation. The details array contains the list of them. - :vartype error: ~azure.mgmt.compute.v2024_07_01.models.ApiError + :vartype error: ~azure.mgmt.compute.v2024_11_01.models.ApiError """ _validation = { @@ -10476,33 +10885,34 @@ class VirtualMachineInstanceView(_serialization.Model): :vartype os_version: str :ivar hyper_v_generation: Specifies the HyperVGeneration Type associated with a resource. Known values are: "V1" and "V2". - :vartype hyper_v_generation: str or ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationType + :vartype hyper_v_generation: str or ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationType :ivar rdp_thumb_print: The Remote desktop certificate thumbprint. :vartype rdp_thumb_print: str :ivar vm_agent: The VM Agent running on the virtual machine. - :vartype vm_agent: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAgentInstanceView + :vartype vm_agent: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAgentInstanceView :ivar maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. :vartype maintenance_redeploy_status: - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceRedeployStatus + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceRedeployStatus :ivar disks: The virtual machine disk information. - :vartype disks: list[~azure.mgmt.compute.v2024_07_01.models.DiskInstanceView] + :vartype disks: list[~azure.mgmt.compute.v2024_11_01.models.DiskInstanceView] :ivar extensions: The extensions information. :vartype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView] - :ivar vm_health: The health status for the VM. - :vartype vm_health: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineHealthStatus + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The application health status for the VM, provided through Application Health + Extension. + :vartype vm_health: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineHealthStatus :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnosticsInstanceView + :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnosticsInstanceView :ivar assigned_host: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. :vartype assigned_host: str :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar patch_status: [Preview Feature] The status of virtual machine patch operations. - :vartype patch_status: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePatchStatus + :vartype patch_status: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePatchStatus :ivar is_vm_in_standby_pool: [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool. :vartype is_vm_in_standby_pool: bool @@ -10567,27 +10977,27 @@ def __init__( :keyword hyper_v_generation: Specifies the HyperVGeneration Type associated with a resource. Known values are: "V1" and "V2". :paramtype hyper_v_generation: str or - ~azure.mgmt.compute.v2024_07_01.models.HyperVGenerationType + ~azure.mgmt.compute.v2024_11_01.models.HyperVGenerationType :keyword rdp_thumb_print: The Remote desktop certificate thumbprint. :paramtype rdp_thumb_print: str :keyword vm_agent: The VM Agent running on the virtual machine. - :paramtype vm_agent: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAgentInstanceView + :paramtype vm_agent: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAgentInstanceView :keyword maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. :paramtype maintenance_redeploy_status: - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceRedeployStatus + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceRedeployStatus :keyword disks: The virtual machine disk information. - :paramtype disks: list[~azure.mgmt.compute.v2024_07_01.models.DiskInstanceView] + :paramtype disks: list[~azure.mgmt.compute.v2024_11_01.models.DiskInstanceView] :keyword extensions: The extensions information. :paramtype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView] :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnosticsInstanceView + :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnosticsInstanceView :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :keyword patch_status: [Preview Feature] The status of virtual machine patch operations. - :paramtype patch_status: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePatchStatus + :paramtype patch_status: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePatchStatus """ super().__init__(**kwargs) self.platform_update_domain = platform_update_domain @@ -10641,7 +11051,7 @@ class VirtualMachineListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of virtual machines. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :ivar next_link: The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. :vartype next_link: str @@ -10661,7 +11071,7 @@ def __init__( ) -> None: """ :keyword value: The list of virtual machines. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :keyword next_link: The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines. :paramtype next_link: str @@ -10683,7 +11093,7 @@ class VirtualMachineNetworkInterfaceConfiguration(_serialization.Model): # pyli :vartype primary: bool :ivar delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :ivar enable_accelerated_networking: Specifies whether the network interface is accelerated networking-enabled. :vartype enable_accelerated_networking: bool @@ -10695,23 +11105,23 @@ class VirtualMachineNetworkInterfaceConfiguration(_serialization.Model): # pyli :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :vartype enable_ip_forwarding: bool :ivar network_security_group: The network security group. - :vartype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar dns_settings: The dns settings to be applied on the network interfaces. :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration :ivar ip_configurations: Specifies the IP configurations of the network interface. :vartype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceIPConfiguration] :ivar dscp_configuration: - :vartype dscp_configuration: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype dscp_configuration: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :vartype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :vartype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ _validation = { @@ -10766,7 +11176,7 @@ def __init__( :paramtype primary: bool :keyword delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :keyword enable_accelerated_networking: Specifies whether the network interface is accelerated networking-enabled. :paramtype enable_accelerated_networking: bool @@ -10778,23 +11188,23 @@ def __init__( :keyword enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :paramtype enable_ip_forwarding: bool :keyword network_security_group: The network security group. - :paramtype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword dns_settings: The dns settings to be applied on the network interfaces. :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration :keyword ip_configurations: Specifies the IP configurations of the network interface. :paramtype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineNetworkInterfaceIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineNetworkInterfaceIPConfiguration] :keyword dscp_configuration: - :paramtype dscp_configuration: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype dscp_configuration: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :paramtype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :keyword auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :paramtype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ super().__init__(**kwargs) self.name = name @@ -10840,32 +11250,32 @@ class VirtualMachineNetworkInterfaceIPConfiguration(_serialization.Model): # py :ivar name: The IP configuration name. Required. :vartype name: str :ivar subnet: Specifies the identifier of the subnet. - :vartype subnet: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype subnet: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool :ivar public_ip_address_configuration: The publicIPAddressConfiguration. :vartype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePublicIPAddressConfiguration :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersions + :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersions :ivar application_security_groups: Specifies an array of references to application security group. - :vartype application_security_groups: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype application_security_groups: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar application_gateway_backend_address_pools: Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. :vartype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar load_balancer_backend_address_pools: Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. :vartype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ _validation = { @@ -10909,33 +11319,33 @@ def __init__( :keyword name: The IP configuration name. Required. :paramtype name: str :keyword subnet: Specifies the identifier of the subnet. - :paramtype subnet: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype subnet: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :paramtype primary: bool :keyword public_ip_address_configuration: The publicIPAddressConfiguration. :paramtype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePublicIPAddressConfiguration :keyword private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersions + :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersions :keyword application_security_groups: Specifies an array of references to application security group. :paramtype application_security_groups: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword application_gateway_backend_address_pools: Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway. :paramtype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword load_balancer_backend_address_pools: Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]. :paramtype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ super().__init__(**kwargs) self.name = name @@ -10955,14 +11365,14 @@ class VirtualMachinePatchStatus(_serialization.Model): :ivar available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. - :vartype available_patch_summary: ~azure.mgmt.compute.v2024_07_01.models.AvailablePatchSummary + :vartype available_patch_summary: ~azure.mgmt.compute.v2024_11_01.models.AvailablePatchSummary :ivar last_patch_installation_summary: The installation summary of the latest installation operation for the virtual machine. :vartype last_patch_installation_summary: - ~azure.mgmt.compute.v2024_07_01.models.LastPatchInstallationSummary + ~azure.mgmt.compute.v2024_11_01.models.LastPatchInstallationSummary :ivar configuration_statuses: The enablement status of the specified patchMode. :vartype configuration_statuses: - list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _validation = { @@ -10989,11 +11399,11 @@ def __init__( :keyword available_patch_summary: The available patch summary of the latest assessment operation for the virtual machine. :paramtype available_patch_summary: - ~azure.mgmt.compute.v2024_07_01.models.AvailablePatchSummary + ~azure.mgmt.compute.v2024_11_01.models.AvailablePatchSummary :keyword last_patch_installation_summary: The installation summary of the latest installation operation for the virtual machine. :paramtype last_patch_installation_summary: - ~azure.mgmt.compute.v2024_07_01.models.LastPatchInstallationSummary + ~azure.mgmt.compute.v2024_11_01.models.LastPatchInstallationSummary """ super().__init__(**kwargs) self.available_patch_summary = available_patch_summary @@ -11009,27 +11419,27 @@ class VirtualMachinePublicIPAddressConfiguration(_serialization.Model): # pylin :ivar name: The publicIP address configuration name. Required. :vartype name: str :ivar sku: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSku :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. :vartype idle_timeout_in_minutes: int :ivar delete_option: Specify what happens to the public IP address when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :ivar dns_settings: The dns settings to be applied on the publicIP addresses . :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration :ivar ip_tags: The list of IP tags associated with the public IP address. - :vartype ip_tags: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIpTag] + :vartype ip_tags: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIpTag] :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype public_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersions + :vartype public_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersions :ivar public_ip_allocation_method: Specify the public IP allocation type. Known values are: "Dynamic" and "Static". :vartype public_ip_allocation_method: str or - ~azure.mgmt.compute.v2024_07_01.models.PublicIPAllocationMethod + ~azure.mgmt.compute.v2024_11_01.models.PublicIPAllocationMethod """ _validation = { @@ -11070,27 +11480,27 @@ def __init__( :paramtype name: str :keyword sku: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSku :keyword idle_timeout_in_minutes: The idle timeout of the public IP address. :paramtype idle_timeout_in_minutes: int :keyword delete_option: Specify what happens to the public IP address when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :keyword dns_settings: The dns settings to be applied on the publicIP addresses . :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration :keyword ip_tags: The list of IP tags associated with the public IP address. - :paramtype ip_tags: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIpTag] + :paramtype ip_tags: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIpTag] :keyword public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :paramtype public_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersions + :paramtype public_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersions :keyword public_ip_allocation_method: Specify the public IP allocation type. Known values are: "Dynamic" and "Static". :paramtype public_ip_allocation_method: str or - ~azure.mgmt.compute.v2024_07_01.models.PublicIPAllocationMethod + ~azure.mgmt.compute.v2024_11_01.models.PublicIPAllocationMethod """ super().__init__(**kwargs) self.name = name @@ -11118,7 +11528,7 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(_serialization.Model label with policy according to the domain name label scope and vm network profile unique ID. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". :vartype domain_name_label_scope: str or - ~azure.mgmt.compute.v2024_07_01.models.DomainNameLabelScopeTypes + ~azure.mgmt.compute.v2024_11_01.models.DomainNameLabelScopeTypes """ _validation = { @@ -11147,7 +11557,7 @@ def __init__( label with policy according to the domain name label scope and vm network profile unique ID. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". :paramtype domain_name_label_scope: str or - ~azure.mgmt.compute.v2024_07_01.models.DomainNameLabelScopeTypes + ~azure.mgmt.compute.v2024_11_01.models.DomainNameLabelScopeTypes """ super().__init__(**kwargs) self.domain_name_label = domain_name_label @@ -11166,7 +11576,7 @@ class VirtualMachineReimageParameters(_serialization.Model): Disk. :vartype exact_version: str :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData """ _attribute_map = { @@ -11192,7 +11602,7 @@ def __init__( Disk. :paramtype exact_version: str :keyword os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData """ super().__init__(**kwargs) self.temp_disk = temp_disk @@ -11218,12 +11628,12 @@ class VirtualMachineRunCommand(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar source: The source of the run command script. - :vartype source: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandScriptSource + :vartype source: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandScriptSource :ivar parameters: The parameters used by the script. - :vartype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :vartype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :ivar protected_parameters: The parameters used by the script. :vartype protected_parameters: - list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :ivar async_execution: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. :vartype async_execution: bool @@ -11249,7 +11659,7 @@ class VirtualMachineRunCommand(Resource): For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :vartype output_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :ivar error_blob_managed_identity: User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' @@ -11257,7 +11667,7 @@ class VirtualMachineRunCommand(Resource): For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :vartype error_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :ivar provisioning_state: The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to @@ -11268,7 +11678,7 @@ class VirtualMachineRunCommand(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine run command instance view. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandInstanceView :ivar treat_failure_as_deployment_failure: Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions @@ -11340,12 +11750,12 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword source: The source of the run command script. - :paramtype source: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandScriptSource + :paramtype source: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandScriptSource :keyword parameters: The parameters used by the script. - :paramtype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :paramtype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :keyword protected_parameters: The parameters used by the script. :paramtype protected_parameters: - list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :keyword async_execution: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. :paramtype async_execution: bool @@ -11371,7 +11781,7 @@ def __init__( For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :paramtype output_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :keyword error_blob_managed_identity: User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' @@ -11379,7 +11789,7 @@ def __init__( For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :paramtype error_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :keyword treat_failure_as_deployment_failure: Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the @@ -11410,7 +11820,7 @@ class VirtualMachineRunCommandInstanceView(_serialization.Model): :ivar execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". - :vartype execution_state: str or ~azure.mgmt.compute.v2024_07_01.models.ExecutionState + :vartype execution_state: str or ~azure.mgmt.compute.v2024_11_01.models.ExecutionState :ivar execution_message: Communicate script configuration errors or execution messages. :vartype execution_message: str :ivar exit_code: Exit code returned from script execution. @@ -11424,7 +11834,7 @@ class VirtualMachineRunCommandInstanceView(_serialization.Model): :ivar end_time: Script end time. :vartype end_time: ~datetime.datetime :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ _attribute_map = { @@ -11454,7 +11864,7 @@ def __init__( """ :keyword execution_state: Script execution status. Known values are: "Unknown", "Pending", "Running", "Failed", "Succeeded", "TimedOut", and "Canceled". - :paramtype execution_state: str or ~azure.mgmt.compute.v2024_07_01.models.ExecutionState + :paramtype execution_state: str or ~azure.mgmt.compute.v2024_11_01.models.ExecutionState :keyword execution_message: Communicate script configuration errors or execution messages. :paramtype execution_message: str :keyword exit_code: Exit code returned from script execution. @@ -11468,7 +11878,7 @@ def __init__( :keyword end_time: Script end time. :paramtype end_time: ~datetime.datetime :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.execution_state = execution_state @@ -11498,7 +11908,7 @@ class VirtualMachineRunCommandScriptSource(_serialization.Model): make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :vartype script_uri_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity """ _attribute_map = { @@ -11532,7 +11942,7 @@ def __init__( identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :paramtype script_uri_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity """ super().__init__(**kwargs) self.script = script @@ -11547,7 +11957,7 @@ class VirtualMachineRunCommandsListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of run commands. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :ivar next_link: The uri to fetch the next page of run commands. :vartype next_link: str """ @@ -11566,7 +11976,7 @@ def __init__( ) -> None: """ :keyword value: The list of run commands. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :keyword next_link: The uri to fetch the next page of run commands. :paramtype next_link: str """ @@ -11583,12 +11993,12 @@ class VirtualMachineRunCommandUpdate(UpdateResource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar source: The source of the run command script. - :vartype source: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandScriptSource + :vartype source: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandScriptSource :ivar parameters: The parameters used by the script. - :vartype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :vartype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :ivar protected_parameters: The parameters used by the script. :vartype protected_parameters: - list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :ivar async_execution: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. :vartype async_execution: bool @@ -11614,7 +12024,7 @@ class VirtualMachineRunCommandUpdate(UpdateResource): For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :vartype output_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :ivar error_blob_managed_identity: User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' @@ -11622,7 +12032,7 @@ class VirtualMachineRunCommandUpdate(UpdateResource): For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :vartype error_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :ivar provisioning_state: The provisioning state, which only appears in the response. If treatFailureAsDeploymentFailure set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure set to @@ -11633,7 +12043,7 @@ class VirtualMachineRunCommandUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine run command instance view. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandInstanceView :ivar treat_failure_as_deployment_failure: Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the extensions @@ -11694,12 +12104,12 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword source: The source of the run command script. - :paramtype source: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandScriptSource + :paramtype source: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandScriptSource :keyword parameters: The parameters used by the script. - :paramtype parameters: list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + :paramtype parameters: list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :keyword protected_parameters: The parameters used by the script. :paramtype protected_parameters: - list[~azure.mgmt.compute.v2024_07_01.models.RunCommandInputParameter] + list[~azure.mgmt.compute.v2024_11_01.models.RunCommandInputParameter] :keyword async_execution: Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. :paramtype async_execution: bool @@ -11725,7 +12135,7 @@ def __init__( For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :paramtype output_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :keyword error_blob_managed_identity: User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage Blob Data Contributor' @@ -11733,7 +12143,7 @@ def __init__( For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. :paramtype error_blob_managed_identity: - ~azure.mgmt.compute.v2024_07_01.models.RunCommandManagedIdentity + ~azure.mgmt.compute.v2024_11_01.models.RunCommandManagedIdentity :keyword treat_failure_as_deployment_failure: Optional. If set to true, any failure in the script will fail the deployment and ProvisioningState will be marked as Failed. If set to false, ProvisioningState would only reflect whether the run command was run or not by the @@ -11777,32 +12187,32 @@ class VirtualMachineScaleSet(Resource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar sku: The virtual machine scale set sku. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :ivar identity: The identity of the virtual machine scale set, if configured. - :vartype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIdentity + :vartype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIdentity :ivar zones: The virtual machine scale set zones. :vartype zones: list[str] :ivar extended_location: The extended location of the Virtual Machine Scale Set. - :vartype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :ivar etag: Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header to ensure optimistic updates. :vartype etag: str :ivar upgrade_policy: The upgrade policy. - :vartype upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.UpgradePolicy + :vartype upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.UpgradePolicy :ivar scheduled_events_policy: The ScheduledEventsPolicy. - :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :ivar automatic_repairs_policy: Policy for automatic repairs. :vartype automatic_repairs_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticRepairsPolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticRepairsPolicy :ivar virtual_machine_profile: The virtual machine profile. :vartype virtual_machine_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMProfile :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. @@ -11826,27 +12236,27 @@ class VirtualMachineScaleSet(Resource): :vartype platform_fault_domain_count: int :ivar proximity_placement_group: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01. - :vartype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + :vartype additional_capabilities: ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :ivar scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :vartype scale_in_policy: ~azure.mgmt.compute.v2024_07_01.models.ScaleInPolicy + :vartype scale_in_policy: ~azure.mgmt.compute.v2024_11_01.models.ScaleInPolicy :ivar orchestration_mode: Specifies the orchestration mode for the virtual machine scale set. Known values are: "Uniform" and "Flexible". - :vartype orchestration_mode: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationMode + :vartype orchestration_mode: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationMode :ivar spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale set. - :vartype spot_restore_policy: ~azure.mgmt.compute.v2024_07_01.models.SpotRestorePolicy + :vartype spot_restore_policy: ~azure.mgmt.compute.v2024_11_01.models.SpotRestorePolicy :ivar priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. - :vartype priority_mix_policy: ~azure.mgmt.compute.v2024_07_01.models.PriorityMixPolicy + :vartype priority_mix_policy: ~azure.mgmt.compute.v2024_11_01.models.PriorityMixPolicy :ivar time_created: Specifies the time at which the Virtual Machine Scale Set resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -11854,13 +12264,13 @@ class VirtualMachineScaleSet(Resource): omitted. :vartype constrained_maximum_capacity: bool :ivar resiliency_policy: Policy for Resiliency. - :vartype resiliency_policy: ~azure.mgmt.compute.v2024_07_01.models.ResiliencyPolicy + :vartype resiliency_policy: ~azure.mgmt.compute.v2024_11_01.models.ResiliencyPolicy :ivar zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count. Known values are: "Aligned" and "Unaligned". :vartype zonal_platform_fault_domain_align_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.ZonalPlatformFaultDomainAlignMode + ~azure.mgmt.compute.v2024_11_01.models.ZonalPlatformFaultDomainAlignMode :ivar sku_profile: Specifies the sku profile for the virtual machine scale set. - :vartype sku_profile: ~azure.mgmt.compute.v2024_07_01.models.SkuProfile + :vartype sku_profile: ~azure.mgmt.compute.v2024_11_01.models.SkuProfile """ _validation = { @@ -11960,30 +12370,30 @@ def __init__( # pylint: disable=too-many-locals :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword sku: The virtual machine scale set sku. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :keyword identity: The identity of the virtual machine scale set, if configured. - :paramtype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIdentity + :paramtype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIdentity :keyword zones: The virtual machine scale set zones. :paramtype zones: list[str] :keyword extended_location: The extended location of the Virtual Machine Scale Set. - :paramtype extended_location: ~azure.mgmt.compute.v2024_07_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.compute.v2024_11_01.models.ExtendedLocation :keyword upgrade_policy: The upgrade policy. - :paramtype upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.UpgradePolicy + :paramtype upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.UpgradePolicy :keyword scheduled_events_policy: The ScheduledEventsPolicy. :paramtype scheduled_events_policy: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :keyword automatic_repairs_policy: Policy for automatic repairs. :paramtype automatic_repairs_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticRepairsPolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticRepairsPolicy :keyword virtual_machine_profile: The virtual machine profile. :paramtype virtual_machine_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMProfile :keyword overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. :paramtype overprovision: bool @@ -12004,40 +12414,40 @@ def __init__( # pylint: disable=too-many-locals :paramtype platform_fault_domain_count: int :keyword proximity_placement_group: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. Minimum api-version: 2020-06-01. - :paramtype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :keyword scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :paramtype scale_in_policy: ~azure.mgmt.compute.v2024_07_01.models.ScaleInPolicy + :paramtype scale_in_policy: ~azure.mgmt.compute.v2024_11_01.models.ScaleInPolicy :keyword orchestration_mode: Specifies the orchestration mode for the virtual machine scale set. Known values are: "Uniform" and "Flexible". - :paramtype orchestration_mode: str or ~azure.mgmt.compute.v2024_07_01.models.OrchestrationMode + :paramtype orchestration_mode: str or ~azure.mgmt.compute.v2024_11_01.models.OrchestrationMode :keyword spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale set. - :paramtype spot_restore_policy: ~azure.mgmt.compute.v2024_07_01.models.SpotRestorePolicy + :paramtype spot_restore_policy: ~azure.mgmt.compute.v2024_11_01.models.SpotRestorePolicy :keyword priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. - :paramtype priority_mix_policy: ~azure.mgmt.compute.v2024_07_01.models.PriorityMixPolicy + :paramtype priority_mix_policy: ~azure.mgmt.compute.v2024_11_01.models.PriorityMixPolicy :keyword constrained_maximum_capacity: Optional property which must either be set to True or omitted. :paramtype constrained_maximum_capacity: bool :keyword resiliency_policy: Policy for Resiliency. - :paramtype resiliency_policy: ~azure.mgmt.compute.v2024_07_01.models.ResiliencyPolicy + :paramtype resiliency_policy: ~azure.mgmt.compute.v2024_11_01.models.ResiliencyPolicy :keyword zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count. Known values are: "Aligned" and "Unaligned". :paramtype zonal_platform_fault_domain_align_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.ZonalPlatformFaultDomainAlignMode + ~azure.mgmt.compute.v2024_11_01.models.ZonalPlatformFaultDomainAlignMode :keyword sku_profile: Specifies the sku profile for the virtual machine scale set. - :paramtype sku_profile: ~azure.mgmt.compute.v2024_07_01.models.SkuProfile + :paramtype sku_profile: ~azure.mgmt.compute.v2024_11_01.models.SkuProfile """ super().__init__(location=location, tags=tags, **kwargs) self.sku = sku @@ -12085,20 +12495,20 @@ class VirtualMachineScaleSetDataDisk(_serialization.Model): :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool :ivar create_option: The create option. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :vartype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :vartype disk_size_gb: int :ivar managed_disk: The managed disk parameters. :vartype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. @@ -12114,7 +12524,7 @@ class VirtualMachineScaleSetDataDisk(_serialization.Model): :code:`
` **Detach** If this value is used, the data disk is retained after VMSS Flex VM is deleted.\\ :code:`
`\\ :code:`
` The default value is set to **Delete**. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ _validation = { @@ -12160,20 +12570,20 @@ def __init__( :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool :keyword create_option: The create option. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :paramtype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :paramtype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :keyword disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. :paramtype disk_size_gb: int :keyword managed_disk: The managed disk parameters. :paramtype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :keyword disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB. @@ -12189,7 +12599,7 @@ def __init__( :code:`
` **Detach** If this value is used, the data disk is retained after VMSS Flex VM is deleted.\\ :code:`
`\\ :code:`
` The default value is set to **Delete**. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ super().__init__(**kwargs) self.name = name @@ -12249,7 +12659,7 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ _validation = { @@ -12331,7 +12741,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ super().__init__(**kwargs) self.name = name @@ -12356,7 +12766,7 @@ class VirtualMachineScaleSetExtensionListResult(_serialization.Model): # pylint All required parameters must be populated in order to send to server. :ivar value: The list of VM scale set extensions. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :ivar next_link: The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions. :vartype next_link: str @@ -12376,7 +12786,7 @@ def __init__( ) -> None: """ :keyword value: The list of VM scale set extensions. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :keyword next_link: The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions. :paramtype next_link: str @@ -12391,7 +12801,7 @@ class VirtualMachineScaleSetExtensionProfile(_serialization.Model): :ivar extensions: The virtual machine scale set child extension resources. :vartype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :ivar extensions_time_budget: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. @@ -12413,7 +12823,7 @@ def __init__( """ :keyword extensions: The virtual machine scale set child extension resources. :paramtype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :keyword extensions_time_budget: Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). Minimum api-version: 2020-06-01. @@ -12469,7 +12879,7 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ _validation = { @@ -12549,7 +12959,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ super().__init__(**kwargs) self.name = None @@ -12574,7 +12984,7 @@ class VirtualMachineScaleSetHardwareProfile(_serialization.Model): :ivar vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details. - :vartype vm_size_properties: ~azure.mgmt.compute.v2024_07_01.models.VMSizeProperties + :vartype vm_size_properties: ~azure.mgmt.compute.v2024_11_01.models.VMSizeProperties """ _attribute_map = { @@ -12586,7 +12996,7 @@ def __init__(self, *, vm_size_properties: Optional["_models.VMSizeProperties"] = :keyword vm_size_properties: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in `VM Customization `_ for more details. - :paramtype vm_size_properties: ~azure.mgmt.compute.v2024_07_01.models.VMSizeProperties + :paramtype vm_size_properties: ~azure.mgmt.compute.v2024_11_01.models.VMSizeProperties """ super().__init__(**kwargs) self.vm_size_properties = vm_size_properties @@ -12608,12 +13018,12 @@ class VirtualMachineScaleSetIdentity(_serialization.Model): assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :vartype type: str or ~azure.mgmt.compute.v2024_07_01.models.ResourceIdentityType + :vartype type: str or ~azure.mgmt.compute.v2024_11_01.models.ResourceIdentityType :ivar user_assigned_identities: The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. # pylint: disable=line-too-long :vartype user_assigned_identities: dict[str, - ~azure.mgmt.compute.v2024_07_01.models.UserAssignedIdentitiesValue] + ~azure.mgmt.compute.v2024_11_01.models.UserAssignedIdentitiesValue] """ _validation = { @@ -12641,13 +13051,13 @@ def __init__( assigned identities. The type 'None' will remove any identities from the virtual machine scale set. Known values are: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", and "None". - :paramtype type: str or ~azure.mgmt.compute.v2024_07_01.models.ResourceIdentityType + :paramtype type: str or ~azure.mgmt.compute.v2024_11_01.models.ResourceIdentityType :keyword user_assigned_identities: The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. # pylint: disable=line-too-long :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.compute.v2024_07_01.models.UserAssignedIdentitiesValue] + ~azure.mgmt.compute.v2024_11_01.models.UserAssignedIdentitiesValue] """ super().__init__(**kwargs) self.principal_id = None @@ -12663,15 +13073,15 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): :ivar virtual_machine: The instance view status summary for the virtual machine scale set. :vartype virtual_machine: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetInstanceViewStatusesSummary + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetInstanceViewStatusesSummary :ivar extensions: The extensions information. :vartype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionsSummary] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionsSummary] :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar orchestration_services: The orchestration services information. :vartype orchestration_services: - list[~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceSummary] + list[~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceSummary] """ _validation = { @@ -12690,7 +13100,7 @@ class VirtualMachineScaleSetInstanceView(_serialization.Model): def __init__(self, *, statuses: Optional[List["_models.InstanceViewStatus"]] = None, **kwargs: Any) -> None: """ :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] """ super().__init__(**kwargs) self.virtual_machine = None @@ -12706,7 +13116,7 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary(_serialization.Model): :ivar statuses_summary: The extensions information. :vartype statuses_summary: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineStatusCodeCount] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineStatusCodeCount] """ _validation = { @@ -12731,35 +13141,35 @@ class VirtualMachineScaleSetIPConfiguration(_serialization.Model): :ivar name: The IP configuration name. Required. :vartype name: str :ivar subnet: Specifies the identifier of the subnet. - :vartype subnet: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype subnet: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :vartype primary: bool :ivar public_ip_address_configuration: The publicIPAddressConfiguration. :vartype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :ivar application_gateway_backend_address_pools: Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. :vartype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar application_security_groups: Specifies an array of references to application security group. - :vartype application_security_groups: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype application_security_groups: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar load_balancer_backend_address_pools: Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. :vartype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar load_balancer_inbound_nat_pools: Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. :vartype load_balancer_inbound_nat_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ _validation = { @@ -12805,37 +13215,37 @@ def __init__( :keyword name: The IP configuration name. Required. :paramtype name: str :keyword subnet: Specifies the identifier of the subnet. - :paramtype subnet: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype subnet: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :keyword primary: Specifies the primary network interface in case the virtual machine has more than 1 network interface. :paramtype primary: bool :keyword public_ip_address_configuration: The publicIPAddressConfiguration. :paramtype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration :keyword private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :keyword application_gateway_backend_address_pools: Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway. :paramtype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword application_security_groups: Specifies an array of references to application security group. :paramtype application_security_groups: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword load_balancer_backend_address_pools: Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. :paramtype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword load_balancer_inbound_nat_pools: Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same basic sku load balancer. :paramtype load_balancer_inbound_nat_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ super().__init__(**kwargs) self.name = name @@ -12882,7 +13292,7 @@ class VirtualMachineScaleSetListOSUpgradeHistory(_serialization.Model): # pylin :ivar value: The list of OS upgrades performed on the virtual machine scale set. Required. :vartype value: - list[~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoricalStatusInfo] + list[~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoricalStatusInfo] :ivar next_link: The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades. :vartype next_link: str @@ -12907,7 +13317,7 @@ def __init__( """ :keyword value: The list of OS upgrades performed on the virtual machine scale set. Required. :paramtype value: - list[~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoricalStatusInfo] + list[~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoricalStatusInfo] :keyword next_link: The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades. :paramtype next_link: str @@ -12923,7 +13333,7 @@ class VirtualMachineScaleSetListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of virtual machine scale sets. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :ivar next_link: The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS. :vartype next_link: str @@ -12943,7 +13353,7 @@ def __init__( ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :keyword next_link: The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS. :paramtype next_link: str @@ -12959,7 +13369,7 @@ class VirtualMachineScaleSetListSkusResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of skus available for the virtual machine scale set. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSku] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSku] :ivar next_link: The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus. :vartype next_link: str @@ -12979,7 +13389,7 @@ def __init__( ) -> None: """ :keyword value: The list of skus available for the virtual machine scale set. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSku] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSku] :keyword next_link: The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus. :paramtype next_link: str @@ -12995,7 +13405,7 @@ class VirtualMachineScaleSetListWithLinkResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of virtual machine scale sets. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :ivar next_link: The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets. :vartype next_link: str @@ -13015,7 +13425,7 @@ def __init__( ) -> None: """ :keyword value: The list of virtual machine scale sets. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :keyword next_link: The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets. :paramtype next_link: str @@ -13033,13 +13443,13 @@ class VirtualMachineScaleSetManagedDiskParameters(_serialization.Model): # pyli are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :vartype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :ivar security_profile: Specifies the security profile for the managed disk. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.VMDiskSecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.VMDiskSecurityProfile """ _attribute_map = { @@ -13062,13 +13472,13 @@ def __init__( are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS". :paramtype storage_account_type: str or - ~azure.mgmt.compute.v2024_07_01.models.StorageAccountTypes + ~azure.mgmt.compute.v2024_11_01.models.StorageAccountTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters :keyword security_profile: Specifies the security profile for the managed disk. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.VMDiskSecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.VMDiskSecurityProfile """ super().__init__(**kwargs) self.storage_account_type = storage_account_type @@ -13076,6 +13486,43 @@ def __init__( self.security_profile = security_profile +class VirtualMachineScaleSetMigrationInfo(_serialization.Model): + """Describes the Availability Set properties related to migration to Flexible Virtual Machine + Scale Set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar default_virtual_machine_scale_set_info: Indicates the target Virtual Machine ScaleSet + properties upon triggering a seamless migration without downtime of the VMs via the + ConvertToVirtualMachineScaleSet API. + :vartype default_virtual_machine_scale_set_info: + ~azure.mgmt.compute.v2024_11_01.models.DefaultVirtualMachineScaleSetInfo + :ivar migrate_to_virtual_machine_scale_set: Specifies the Virtual Machine Scale Set that the + Availability Set is migrated to. + :vartype migrate_to_virtual_machine_scale_set: + ~azure.mgmt.compute.v2024_11_01.models.SubResource + """ + + _validation = { + "default_virtual_machine_scale_set_info": {"readonly": True}, + "migrate_to_virtual_machine_scale_set": {"readonly": True}, + } + + _attribute_map = { + "default_virtual_machine_scale_set_info": { + "key": "defaultVirtualMachineScaleSetInfo", + "type": "DefaultVirtualMachineScaleSetInfo", + }, + "migrate_to_virtual_machine_scale_set": {"key": "migrateToVirtualMachineScaleSet", "type": "SubResource"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.default_virtual_machine_scale_set_info = None + self.migrate_to_virtual_machine_scale_set = None + + class VirtualMachineScaleSetNetworkConfiguration(_serialization.Model): # pylint: disable=name-too-long """Describes a virtual machine scale set network profile's network configurations. @@ -13095,26 +13542,26 @@ class VirtualMachineScaleSetNetworkConfiguration(_serialization.Model): # pylin :ivar enable_fpga: Specifies whether the network interface is FPGA networking-enabled. :vartype enable_fpga: bool :ivar network_security_group: The network security group. - :vartype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar dns_settings: The dns settings to be applied on the network interfaces. :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings :ivar ip_configurations: Specifies the IP configurations of the network interface. :vartype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIPConfiguration] :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :vartype enable_ip_forwarding: bool :ivar delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :vartype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :vartype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ _validation = { @@ -13171,26 +13618,26 @@ def __init__( :keyword enable_fpga: Specifies whether the network interface is FPGA networking-enabled. :paramtype enable_fpga: bool :keyword network_security_group: The network security group. - :paramtype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword dns_settings: The dns settings to be applied on the network interfaces. :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings :keyword ip_configurations: Specifies the IP configurations of the network interface. :paramtype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIPConfiguration] :keyword enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :paramtype enable_ip_forwarding: bool :keyword delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :keyword auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :paramtype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :keyword auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :paramtype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ super().__init__(**kwargs) self.name = name @@ -13233,14 +13680,15 @@ class VirtualMachineScaleSetNetworkProfile(_serialization.Model): :ivar health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. # pylint: disable=line-too-long - :vartype health_probe: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype health_probe: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar network_interface_configurations: The list of network configurations. :vartype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfiguration] - :ivar network_api_version: specifies the Microsoft.Network API version used when creating + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfiguration] + :ivar network_api_version: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with - orchestration mode 'Flexible'. "2020-11-01" - :vartype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'. Known + values are: "2020-11-01" and "2022-11-01". + :vartype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion """ _attribute_map = { @@ -13264,14 +13712,15 @@ def __init__( :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. # pylint: disable=line-too-long - :paramtype health_probe: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype health_probe: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfiguration] - :keyword network_api_version: specifies the Microsoft.Network API version used when creating + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfiguration] + :keyword network_api_version: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with - orchestration mode 'Flexible'. "2020-11-01" - :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'. Known + values are: "2020-11-01" and "2022-11-01". + :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion """ super().__init__(**kwargs) self.health_probe = health_probe @@ -13289,7 +13738,7 @@ class VirtualMachineScaleSetOSDisk(_serialization.Model): :ivar caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool @@ -13299,10 +13748,10 @@ class VirtualMachineScaleSetOSDisk(_serialization.Model): described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :vartype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :vartype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :ivar diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. @@ -13310,15 +13759,15 @@ class VirtualMachineScaleSetOSDisk(_serialization.Model): :ivar os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :vartype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :vartype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :ivar image: Specifies information about the unmanaged user image to base the scale set on. - :vartype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar vhd_containers: Specifies the container urls that are used to store operating system disks for the scale set. :vartype vhd_containers: list[str] :ivar managed_disk: The managed disk parameters. :vartype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). :code:`
`\\ :code:`
` Possible values: :code:`
`\\ :code:`
` **Delete** If this @@ -13327,7 +13776,7 @@ class VirtualMachineScaleSetOSDisk(_serialization.Model): deleted. :code:`
`\\ :code:`
` The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ _validation = { @@ -13370,7 +13819,7 @@ def __init__( :keyword caching: Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage.**. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool @@ -13380,10 +13829,10 @@ def __init__( element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". - :paramtype create_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskCreateOptionTypes + :paramtype create_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskCreateOptionTypes :keyword diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :keyword disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. @@ -13391,15 +13840,15 @@ def __init__( :keyword os_type: This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**. Known values are: "Windows" and "Linux". - :paramtype os_type: str or ~azure.mgmt.compute.v2024_07_01.models.OperatingSystemTypes + :paramtype os_type: str or ~azure.mgmt.compute.v2024_11_01.models.OperatingSystemTypes :keyword image: Specifies information about the unmanaged user image to base the scale set on. - :paramtype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword vhd_containers: Specifies the container urls that are used to store operating system disks for the scale set. :paramtype vhd_containers: list[str] :keyword managed_disk: The managed disk parameters. :paramtype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :keyword delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). :code:`
`\\ :code:`
` Possible values: :code:`
`\\ :code:`
` **Delete** If this @@ -13408,7 +13857,7 @@ def __init__( deleted. :code:`
`\\ :code:`
` The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ super().__init__(**kwargs) self.name = name @@ -13462,18 +13911,18 @@ class VirtualMachineScaleSetOSProfile(_serialization.Model): :vartype custom_data: str :ivar windows_configuration: Specifies Windows operating system settings on the virtual machine. - :vartype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :vartype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :ivar linux_configuration: Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. - :vartype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :vartype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :ivar secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :vartype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :vartype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] :ivar allow_extension_operations: Specifies whether extension operations should be allowed on the virtual machine scale set. This may only be set to False when no extensions are present on the virtual machine scale set. @@ -13545,18 +13994,18 @@ def __init__( :paramtype custom_data: str :keyword windows_configuration: Specifies Windows operating system settings on the virtual machine. - :paramtype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :paramtype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :keyword linux_configuration: Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. - :paramtype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :paramtype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :keyword secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. To install certificates on a virtual machine it is recommended to use the `Azure Key Vault virtual machine extension for Linux `_ or the `Azure Key Vault virtual machine extension for Windows `_. - :paramtype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :paramtype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] :keyword allow_extension_operations: Specifies whether extension operations should be allowed on the virtual machine scale set. This may only be set to False when no extensions are present on the virtual machine scale set. @@ -13585,23 +14034,23 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(_serialization.Model): :ivar name: The publicIP address configuration name. Required. :vartype name: str :ivar sku: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSku :ivar idle_timeout_in_minutes: The idle timeout of the public IP address. :vartype idle_timeout_in_minutes: int :ivar dns_settings: The dns settings to be applied on the publicIP addresses . :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings :ivar ip_tags: The list of IP tags associated with the public IP address. - :vartype ip_tags: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIpTag] + :vartype ip_tags: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIpTag] :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype public_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :vartype public_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :ivar delete_option: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ _validation = { @@ -13640,23 +14089,23 @@ def __init__( :paramtype name: str :keyword sku: Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.PublicIPAddressSku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.PublicIPAddressSku :keyword idle_timeout_in_minutes: The idle timeout of the public IP address. :paramtype idle_timeout_in_minutes: int :keyword dns_settings: The dns settings to be applied on the publicIP addresses . :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings :keyword ip_tags: The list of IP tags associated with the public IP address. - :paramtype ip_tags: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIpTag] + :paramtype ip_tags: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIpTag] :keyword public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword public_ip_address_version: Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :paramtype public_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :paramtype public_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :keyword delete_option: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ super().__init__(**kwargs) self.name = name @@ -13685,7 +14134,7 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings( index will be the domain name labels of the PublicIPAddress resources that will be created. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". :vartype domain_name_label_scope: str or - ~azure.mgmt.compute.v2024_07_01.models.DomainNameLabelScopeTypes + ~azure.mgmt.compute.v2024_11_01.models.DomainNameLabelScopeTypes """ _validation = { @@ -13714,7 +14163,7 @@ def __init__( index will be the domain name labels of the PublicIPAddress resources that will be created. Known values are: "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", and "NoReuse". :paramtype domain_name_label_scope: str or - ~azure.mgmt.compute.v2024_07_01.models.DomainNameLabelScopeTypes + ~azure.mgmt.compute.v2024_11_01.models.DomainNameLabelScopeTypes """ super().__init__(**kwargs) self.domain_name_label = domain_name_label @@ -13732,7 +14181,7 @@ class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters) Disk. :vartype exact_version: str :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData :ivar force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a virtual machine scale set VM. :vartype force_update_os_disk_for_ephemeral: bool @@ -13763,7 +14212,7 @@ def __init__( Disk. :paramtype exact_version: str :keyword os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData :keyword force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a virtual machine scale set VM. :paramtype force_update_os_disk_for_ephemeral: bool @@ -13783,7 +14232,7 @@ class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimagePar Disk. :vartype exact_version: str :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData :ivar force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a virtual machine scale set VM. :vartype force_update_os_disk_for_ephemeral: bool @@ -13820,7 +14269,7 @@ def __init__( Disk. :paramtype exact_version: str :keyword os_profile: Specifies information required for reimaging the non-ephemeral OS disk. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfileProvisioningData + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfileProvisioningData :keyword force_update_os_disk_for_ephemeral: Parameter to force update ephemeral OS disk for a virtual machine scale set VM. :paramtype force_update_os_disk_for_ephemeral: bool @@ -13847,9 +14296,9 @@ class VirtualMachineScaleSetSku(_serialization.Model): :ivar resource_type: The type of resource the sku applies to. :vartype resource_type: str :ivar sku: The Sku. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar capacity: Specifies the number of virtual machines in the scale set. - :vartype capacity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSkuCapacity + :vartype capacity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSkuCapacity """ _validation = { @@ -13886,7 +14335,7 @@ class VirtualMachineScaleSetSkuCapacity(_serialization.Model): :ivar scale_type: The scale type applicable to the sku. Known values are: "Automatic" and "None". :vartype scale_type: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSkuScaleType + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSkuScaleType """ _validation = { @@ -13919,18 +14368,18 @@ class VirtualMachineScaleSetStorageProfile(_serialization.Model): information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. - :vartype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :vartype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :ivar os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :vartype os_disk: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetOSDisk + :vartype os_disk: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetOSDisk :ivar data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. :vartype data_disks: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetDataDisk] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetDataDisk] :ivar disk_controller_type: :vartype disk_controller_type: str """ @@ -13956,18 +14405,18 @@ def __init__( information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. - :paramtype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :paramtype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :keyword os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. - :paramtype os_disk: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetOSDisk + :paramtype os_disk: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetOSDisk :keyword data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see `About disks and VHDs for Azure virtual machines `_. :paramtype data_disks: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetDataDisk] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetDataDisk] :keyword disk_controller_type: :paramtype disk_controller_type: str """ @@ -13984,22 +14433,22 @@ class VirtualMachineScaleSetUpdate(UpdateResource): :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar sku: The virtual machine scale set sku. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar plan: The purchase plan when deploying a virtual machine scale set from VM Marketplace images. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :ivar identity: The identity of the virtual machine scale set, if configured. - :vartype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIdentity + :vartype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIdentity :ivar zones: The virtual machine scale set zones. :vartype zones: list[str] :ivar upgrade_policy: The upgrade policy. - :vartype upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.UpgradePolicy + :vartype upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.UpgradePolicy :ivar automatic_repairs_policy: Policy for automatic repairs. :vartype automatic_repairs_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticRepairsPolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticRepairsPolicy :ivar virtual_machine_profile: The virtual machine profile. :vartype virtual_machine_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateVMProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateVMProfile :ivar overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. :vartype overprovision: bool :ivar do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions @@ -14014,28 +14463,28 @@ class VirtualMachineScaleSetUpdate(UpdateResource): Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + :vartype additional_capabilities: ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :ivar scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :vartype scale_in_policy: ~azure.mgmt.compute.v2024_07_01.models.ScaleInPolicy + :vartype scale_in_policy: ~azure.mgmt.compute.v2024_11_01.models.ScaleInPolicy :ivar proximity_placement_group: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. :code:`
`\\ :code:`
`Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. - :vartype priority_mix_policy: ~azure.mgmt.compute.v2024_07_01.models.PriorityMixPolicy + :vartype priority_mix_policy: ~azure.mgmt.compute.v2024_11_01.models.PriorityMixPolicy :ivar spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale set. - :vartype spot_restore_policy: ~azure.mgmt.compute.v2024_07_01.models.SpotRestorePolicy + :vartype spot_restore_policy: ~azure.mgmt.compute.v2024_11_01.models.SpotRestorePolicy :ivar resiliency_policy: Policy for Resiliency. - :vartype resiliency_policy: ~azure.mgmt.compute.v2024_07_01.models.ResiliencyPolicy + :vartype resiliency_policy: ~azure.mgmt.compute.v2024_11_01.models.ResiliencyPolicy :ivar zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count. Known values are: "Aligned" and "Unaligned". :vartype zonal_platform_fault_domain_align_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.ZonalPlatformFaultDomainAlignMode + ~azure.mgmt.compute.v2024_11_01.models.ZonalPlatformFaultDomainAlignMode :ivar sku_profile: Specifies the sku profile for the virtual machine scale set. - :vartype sku_profile: ~azure.mgmt.compute.v2024_07_01.models.SkuProfile + :vartype sku_profile: ~azure.mgmt.compute.v2024_11_01.models.SkuProfile """ _attribute_map = { @@ -14099,22 +14548,22 @@ def __init__( :keyword tags: Resource tags. :paramtype tags: dict[str, str] :keyword sku: The virtual machine scale set sku. - :paramtype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :paramtype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :keyword plan: The purchase plan when deploying a virtual machine scale set from VM Marketplace images. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :keyword identity: The identity of the virtual machine scale set, if configured. - :paramtype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetIdentity + :paramtype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetIdentity :keyword zones: The virtual machine scale set zones. :paramtype zones: list[str] :keyword upgrade_policy: The upgrade policy. - :paramtype upgrade_policy: ~azure.mgmt.compute.v2024_07_01.models.UpgradePolicy + :paramtype upgrade_policy: ~azure.mgmt.compute.v2024_11_01.models.UpgradePolicy :keyword automatic_repairs_policy: Policy for automatic repairs. :paramtype automatic_repairs_policy: - ~azure.mgmt.compute.v2024_07_01.models.AutomaticRepairsPolicy + ~azure.mgmt.compute.v2024_11_01.models.AutomaticRepairsPolicy :keyword virtual_machine_profile: The virtual machine profile. :paramtype virtual_machine_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateVMProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateVMProfile :keyword overprovision: Specifies whether the Virtual Machine Scale Set should be overprovisioned. :paramtype overprovision: bool @@ -14131,29 +14580,29 @@ def __init__( have the capability to support attaching managed data disks with UltraSSD_LRS storage account type. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :keyword scale_in_policy: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set. - :paramtype scale_in_policy: ~azure.mgmt.compute.v2024_07_01.models.ScaleInPolicy + :paramtype scale_in_policy: ~azure.mgmt.compute.v2024_11_01.models.ScaleInPolicy :keyword proximity_placement_group: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to. :code:`
`\\ :code:`
`Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword priority_mix_policy: Specifies the desired targets for mixing Spot and Regular priority VMs within the same VMSS Flex instance. - :paramtype priority_mix_policy: ~azure.mgmt.compute.v2024_07_01.models.PriorityMixPolicy + :paramtype priority_mix_policy: ~azure.mgmt.compute.v2024_11_01.models.PriorityMixPolicy :keyword spot_restore_policy: Specifies the Spot Restore properties for the virtual machine scale set. - :paramtype spot_restore_policy: ~azure.mgmt.compute.v2024_07_01.models.SpotRestorePolicy + :paramtype spot_restore_policy: ~azure.mgmt.compute.v2024_11_01.models.SpotRestorePolicy :keyword resiliency_policy: Policy for Resiliency. - :paramtype resiliency_policy: ~azure.mgmt.compute.v2024_07_01.models.ResiliencyPolicy + :paramtype resiliency_policy: ~azure.mgmt.compute.v2024_11_01.models.ResiliencyPolicy :keyword zonal_platform_fault_domain_align_mode: Specifies the align mode between Virtual Machine Scale Set compute and storage Fault Domain count. Known values are: "Aligned" and "Unaligned". :paramtype zonal_platform_fault_domain_align_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.ZonalPlatformFaultDomainAlignMode + ~azure.mgmt.compute.v2024_11_01.models.ZonalPlatformFaultDomainAlignMode :keyword sku_profile: Specifies the sku profile for the virtual machine scale set. - :paramtype sku_profile: ~azure.mgmt.compute.v2024_07_01.models.SkuProfile + :paramtype sku_profile: ~azure.mgmt.compute.v2024_11_01.models.SkuProfile """ super().__init__(tags=tags, **kwargs) self.sku = sku @@ -14184,29 +14633,29 @@ class VirtualMachineScaleSetUpdateIPConfiguration(_serialization.Model): # pyli :ivar name: The IP configuration name. :vartype name: str :ivar subnet: The subnet. - :vartype subnet: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype subnet: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar primary: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. :vartype primary: bool :ivar public_ip_address_configuration: The publicIPAddressConfiguration. :vartype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration :ivar private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :vartype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :ivar application_gateway_backend_address_pools: The application gateway backend address pools. :vartype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar application_security_groups: Specifies an array of references to application security group. - :vartype application_security_groups: list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + :vartype application_security_groups: list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar load_balancer_backend_address_pools: The load balancer backend address pools. :vartype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :ivar load_balancer_inbound_nat_pools: The load balancer inbound nat pools. :vartype load_balancer_inbound_nat_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ _attribute_map = { @@ -14250,31 +14699,31 @@ def __init__( :keyword name: The IP configuration name. :paramtype name: str :keyword subnet: The subnet. - :paramtype subnet: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype subnet: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :keyword primary: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. :paramtype primary: bool :keyword public_ip_address_configuration: The publicIPAddressConfiguration. :paramtype public_ip_address_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration :keyword private_ip_address_version: Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. Known values are: "IPv4" and "IPv6". - :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_07_01.models.IPVersion + :paramtype private_ip_address_version: str or ~azure.mgmt.compute.v2024_11_01.models.IPVersion :keyword application_gateway_backend_address_pools: The application gateway backend address pools. :paramtype application_gateway_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword application_security_groups: Specifies an array of references to application security group. :paramtype application_security_groups: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword load_balancer_backend_address_pools: The load balancer backend address pools. :paramtype load_balancer_backend_address_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] :keyword load_balancer_inbound_nat_pools: The load balancer inbound nat pools. :paramtype load_balancer_inbound_nat_pools: - list[~azure.mgmt.compute.v2024_07_01.models.SubResource] + list[~azure.mgmt.compute.v2024_11_01.models.SubResource] """ super().__init__(**kwargs) self.name = name @@ -14304,26 +14753,26 @@ class VirtualMachineScaleSetUpdateNetworkConfiguration(_serialization.Model): # :ivar enable_fpga: Specifies whether the network interface is FPGA networking-enabled. :vartype enable_fpga: bool :ivar network_security_group: The network security group. - :vartype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar dns_settings: The dns settings to be applied on the network interfaces. :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings :ivar ip_configurations: The virtual machine scale set IP Configuration. :vartype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateIPConfiguration] :ivar enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :vartype enable_ip_forwarding: bool :ivar delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :ivar auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :vartype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :ivar auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :vartype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ _attribute_map = { @@ -14378,26 +14827,26 @@ def __init__( :keyword enable_fpga: Specifies whether the network interface is FPGA networking-enabled. :paramtype enable_fpga: bool :keyword network_security_group: The network security group. - :paramtype network_security_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype network_security_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword dns_settings: The dns settings to be applied on the network interfaces. :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings :keyword ip_configurations: The virtual machine scale set IP Configuration. :paramtype ip_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateIPConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateIPConfiguration] :keyword enable_ip_forwarding: Whether IP forwarding enabled on this NIC. :paramtype enable_ip_forwarding: bool :keyword delete_option: Specify what happens to the network interface when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions :keyword auxiliary_mode: Specifies whether the Auxiliary mode is enabled for the Network Interface resource. Known values are: "None", "AcceleratedConnections", and "Floating". :paramtype auxiliary_mode: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliaryMode + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliaryMode :keyword auxiliary_sku: Specifies whether the Auxiliary sku is enabled for the Network Interface resource. Known values are: "None", "A1", "A2", "A4", and "A8". :paramtype auxiliary_sku: str or - ~azure.mgmt.compute.v2024_07_01.models.NetworkInterfaceAuxiliarySku + ~azure.mgmt.compute.v2024_11_01.models.NetworkInterfaceAuxiliarySku """ super().__init__(**kwargs) self.name = name @@ -14420,14 +14869,15 @@ class VirtualMachineScaleSetUpdateNetworkProfile(_serialization.Model): # pylin :ivar health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. # pylint: disable=line-too-long - :vartype health_probe: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :vartype health_probe: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :ivar network_interface_configurations: The list of network configurations. :vartype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] - :ivar network_api_version: specifies the Microsoft.Network API version used when creating + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] + :ivar network_api_version: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with - orchestration mode 'Flexible'. "2020-11-01" - :vartype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'. Known + values are: "2020-11-01" and "2022-11-01". + :vartype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion """ _attribute_map = { @@ -14453,14 +14903,15 @@ def __init__( :keyword health_probe: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'. # pylint: disable=line-too-long - :paramtype health_probe: ~azure.mgmt.compute.v2024_07_01.models.ApiEntityReference + :paramtype health_probe: ~azure.mgmt.compute.v2024_11_01.models.ApiEntityReference :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] - :keyword network_api_version: specifies the Microsoft.Network API version used when creating + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] + :keyword network_api_version: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with - orchestration mode 'Flexible'. "2020-11-01" - :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_07_01.models.NetworkApiVersion + orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'. Known + values are: "2020-11-01" and "2022-11-01". + :paramtype network_api_version: str or ~azure.mgmt.compute.v2024_11_01.models.NetworkApiVersion """ super().__init__(**kwargs) self.health_probe = health_probe @@ -14473,13 +14924,13 @@ class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): for Updating VMSS OS Disk. :ivar caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". - :vartype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :vartype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :ivar write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :vartype write_accelerator_enabled: bool :ivar diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :vartype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :ivar disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. :code:`
`\\ :code:`
` diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than @@ -14488,12 +14939,12 @@ class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): :ivar image: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. - :vartype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :vartype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :ivar vhd_containers: The list of virtual hard disk container uris. :vartype vhd_containers: list[str] :ivar managed_disk: The managed disk parameters. :vartype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :ivar delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). :code:`
`\\ :code:`
` Possible values: :code:`
`\\ :code:`
` **Delete** If this @@ -14502,7 +14953,7 @@ class VirtualMachineScaleSetUpdateOSDisk(_serialization.Model): deleted. :code:`
`\\ :code:`
` The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ _attribute_map = { @@ -14531,13 +14982,13 @@ def __init__( ) -> None: """ :keyword caching: The caching type. Known values are: "None", "ReadOnly", and "ReadWrite". - :paramtype caching: str or ~azure.mgmt.compute.v2024_07_01.models.CachingTypes + :paramtype caching: str or ~azure.mgmt.compute.v2024_11_01.models.CachingTypes :keyword write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or disabled on the disk. :paramtype write_accelerator_enabled: bool :keyword diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set. - :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_07_01.models.DiffDiskSettings + :paramtype diff_disk_settings: ~azure.mgmt.compute.v2024_11_01.models.DiffDiskSettings :keyword disk_size_gb: Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. :code:`
`\\ :code:`
` diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be @@ -14546,12 +14997,12 @@ def __init__( :keyword image: The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist. - :paramtype image: ~azure.mgmt.compute.v2024_07_01.models.VirtualHardDisk + :paramtype image: ~azure.mgmt.compute.v2024_11_01.models.VirtualHardDisk :keyword vhd_containers: The list of virtual hard disk container uris. :paramtype vhd_containers: list[str] :keyword managed_disk: The managed disk parameters. :paramtype managed_disk: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetManagedDiskParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetManagedDiskParameters :keyword delete_option: Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). :code:`
`\\ :code:`
` Possible values: :code:`
`\\ :code:`
` **Delete** If this @@ -14560,7 +15011,7 @@ def __init__( deleted. :code:`
`\\ :code:`
` The default value is set to **Delete**. For an Ephemeral OS Disk, the default value is set to **Delete**. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DiskDeleteOptionTypes + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DiskDeleteOptionTypes """ super().__init__(**kwargs) self.caching = caching @@ -14579,11 +15030,11 @@ class VirtualMachineScaleSetUpdateOSProfile(_serialization.Model): :ivar custom_data: A base-64 encoded string of custom data. :vartype custom_data: str :ivar windows_configuration: The Windows Configuration of the OS profile. - :vartype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :vartype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :ivar linux_configuration: The Linux Configuration of the OS profile. - :vartype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :vartype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :ivar secrets: The List of certificates for addition to the VM. - :vartype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :vartype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] """ _attribute_map = { @@ -14606,11 +15057,11 @@ def __init__( :keyword custom_data: A base-64 encoded string of custom data. :paramtype custom_data: str :keyword windows_configuration: The Windows Configuration of the OS profile. - :paramtype windows_configuration: ~azure.mgmt.compute.v2024_07_01.models.WindowsConfiguration + :paramtype windows_configuration: ~azure.mgmt.compute.v2024_11_01.models.WindowsConfiguration :keyword linux_configuration: The Linux Configuration of the OS profile. - :paramtype linux_configuration: ~azure.mgmt.compute.v2024_07_01.models.LinuxConfiguration + :paramtype linux_configuration: ~azure.mgmt.compute.v2024_11_01.models.LinuxConfiguration :keyword secrets: The List of certificates for addition to the VM. - :paramtype secrets: list[~azure.mgmt.compute.v2024_07_01.models.VaultSecretGroup] + :paramtype secrets: list[~azure.mgmt.compute.v2024_11_01.models.VaultSecretGroup] """ super().__init__(**kwargs) self.custom_data = custom_data @@ -14628,12 +15079,12 @@ class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(_serialization.Mo :vartype idle_timeout_in_minutes: int :ivar dns_settings: The dns settings to be applied on the publicIP addresses . :vartype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings :ivar public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar delete_option: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :vartype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :vartype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ _attribute_map = { @@ -14664,12 +15115,12 @@ def __init__( :paramtype idle_timeout_in_minutes: int :keyword dns_settings: The dns settings to be applied on the publicIP addresses . :paramtype dns_settings: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings :keyword public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. - :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype public_ip_prefix: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword delete_option: Specify what happens to the public IP when the VM is deleted. Known values are: "Delete" and "Detach". - :paramtype delete_option: str or ~azure.mgmt.compute.v2024_07_01.models.DeleteOptions + :paramtype delete_option: str or ~azure.mgmt.compute.v2024_11_01.models.DeleteOptions """ super().__init__(**kwargs) self.name = name @@ -14683,12 +15134,12 @@ class VirtualMachineScaleSetUpdateStorageProfile(_serialization.Model): # pylin """Describes a virtual machine scale set storage profile. :ivar image_reference: The image reference. - :vartype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :vartype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :ivar os_disk: The OS disk. - :vartype os_disk: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateOSDisk + :vartype os_disk: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateOSDisk :ivar data_disks: The data disks. :vartype data_disks: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetDataDisk] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetDataDisk] :ivar disk_controller_type: :vartype disk_controller_type: str """ @@ -14711,12 +15162,12 @@ def __init__( ) -> None: """ :keyword image_reference: The image reference. - :paramtype image_reference: ~azure.mgmt.compute.v2024_07_01.models.ImageReference + :paramtype image_reference: ~azure.mgmt.compute.v2024_11_01.models.ImageReference :keyword os_disk: The OS disk. - :paramtype os_disk: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateOSDisk + :paramtype os_disk: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateOSDisk :keyword data_disks: The data disks. :paramtype data_disks: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetDataDisk] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetDataDisk] :keyword disk_controller_type: :paramtype disk_controller_type: str """ @@ -14732,38 +15183,38 @@ class VirtualMachineScaleSetUpdateVMProfile(_serialization.Model): :ivar os_profile: The virtual machine scale set OS profile. :vartype os_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateOSProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateOSProfile :ivar storage_profile: The virtual machine scale set storage profile. :vartype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateStorageProfile :ivar network_profile: The virtual machine scale set network profile. :vartype network_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateNetworkProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateNetworkProfile :ivar security_posture_reference: The virtual machine scale set security posture reference. :vartype security_posture_reference: - ~azure.mgmt.compute.v2024_07_01.models.SecurityPostureReferenceUpdate + ~azure.mgmt.compute.v2024_11_01.models.SecurityPostureReferenceUpdate :ivar security_profile: The virtual machine scale set Security profile. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar diagnostics_profile: The virtual machine scale set diagnostics profile. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar extension_profile: The virtual machine scale set extension profile. :vartype extension_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionProfile :ivar license_type: The license type, which is for bring your own license scenario. :vartype license_type: str :ivar billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :vartype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :vartype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. :vartype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. :code:`
`\\ :code:`
`Minimum api-version: 2021-03-01. :vartype user_data: str :ivar hardware_profile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. :vartype hardware_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetHardwareProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetHardwareProfile """ _attribute_map = { @@ -14801,38 +15252,38 @@ def __init__( """ :keyword os_profile: The virtual machine scale set OS profile. :paramtype os_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateOSProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateOSProfile :keyword storage_profile: The virtual machine scale set storage profile. :paramtype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateStorageProfile :keyword network_profile: The virtual machine scale set network profile. :paramtype network_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdateNetworkProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdateNetworkProfile :keyword security_posture_reference: The virtual machine scale set security posture reference. :paramtype security_posture_reference: - ~azure.mgmt.compute.v2024_07_01.models.SecurityPostureReferenceUpdate + ~azure.mgmt.compute.v2024_11_01.models.SecurityPostureReferenceUpdate :keyword security_profile: The virtual machine scale set Security profile. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :keyword diagnostics_profile: The virtual machine scale set diagnostics profile. - :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :keyword extension_profile: The virtual machine scale set extension profile. :paramtype extension_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionProfile :keyword license_type: The license type, which is for bring your own license scenario. :paramtype license_type: str :keyword billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :paramtype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :paramtype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :keyword scheduled_events_profile: Specifies Scheduled Event related configurations. :paramtype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :keyword user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. :code:`
`\\ :code:`
`Minimum api-version: 2021-03-01. :paramtype user_data: str :keyword hardware_profile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. :paramtype hardware_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetHardwareProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetHardwareProfile """ super().__init__(**kwargs) self.os_profile = os_profile @@ -14869,19 +15320,19 @@ class VirtualMachineScaleSetVM(Resource): :ivar instance_id: The virtual machine instance ID. :vartype instance_id: str :ivar sku: The virtual machine SKU. - :vartype sku: ~azure.mgmt.compute.v2024_07_01.models.Sku + :vartype sku: ~azure.mgmt.compute.v2024_11_01.models.Sku :ivar plan: Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :ivar resources: The virtual machine child extension resources. - :vartype resources: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + :vartype resources: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :ivar zones: The virtual machine zones. :vartype zones: list[str] :ivar identity: The identity of the virtual machine, if configured. - :vartype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :vartype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :ivar etag: Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates. :vartype etag: str @@ -14892,29 +15343,33 @@ class VirtualMachineScaleSetVM(Resource): :vartype vm_id: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceView :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile + :ivar resilient_vm_deletion_status: Specifies the resilient VM deletion status for the virtual + machine. Known values are: "Enabled", "Disabled", "InProgress", and "Failed". + :vartype resilient_vm_deletion_status: str or + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMDeletionStatus :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type. - :vartype additional_capabilities: ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + :vartype additional_capabilities: ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :ivar os_profile: Specifies the operating system settings for the virtual machine. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :ivar security_profile: Specifies the Security related profile settings for the virtual machine. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :ivar network_profile_configuration: Specifies the network profile configuration of the virtual machine. :vartype network_profile_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -14924,7 +15379,7 @@ class VirtualMachineScaleSetVM(Resource): Azure `_. Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. - :vartype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar license_type: Specifies that the image or disk that is being used was licensed @@ -14944,7 +15399,7 @@ class VirtualMachineScaleSetVM(Resource): :vartype model_definition_applied: str :ivar protection_policy: Specifies the protection policy of the virtual machine. :vartype protection_policy: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMProtectionPolicy + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMProtectionPolicy :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :vartype user_data: str @@ -14988,6 +15443,7 @@ class VirtualMachineScaleSetVM(Resource): "vm_id": {"key": "properties.vmId", "type": "str"}, "instance_view": {"key": "properties.instanceView", "type": "VirtualMachineScaleSetVMInstanceView"}, "hardware_profile": {"key": "properties.hardwareProfile", "type": "HardwareProfile"}, + "resilient_vm_deletion_status": {"key": "properties.resilientVMDeletionStatus", "type": "str"}, "storage_profile": {"key": "properties.storageProfile", "type": "StorageProfile"}, "additional_capabilities": {"key": "properties.additionalCapabilities", "type": "AdditionalCapabilities"}, "os_profile": {"key": "properties.osProfile", "type": "OSProfile"}, @@ -15015,6 +15471,7 @@ def __init__( # pylint: disable=too-many-locals plan: Optional["_models.Plan"] = None, identity: Optional["_models.VirtualMachineIdentity"] = None, hardware_profile: Optional["_models.HardwareProfile"] = None, + resilient_vm_deletion_status: Optional[Union[str, "_models.ResilientVMDeletionStatus"]] = None, storage_profile: Optional["_models.StorageProfile"] = None, additional_capabilities: Optional["_models.AdditionalCapabilities"] = None, os_profile: Optional["_models.OSProfile"] = None, @@ -15038,32 +15495,36 @@ def __init__( # pylint: disable=too-many-locals image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :keyword identity: The identity of the virtual machine, if configured. - :paramtype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :paramtype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile + :keyword resilient_vm_deletion_status: Specifies the resilient VM deletion status for the + virtual machine. Known values are: "Enabled", "Disabled", "InProgress", and "Failed". + :paramtype resilient_vm_deletion_status: str or + ~azure.mgmt.compute.v2024_11_01.models.ResilientVMDeletionStatus :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :keyword additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :keyword os_profile: Specifies the operating system settings for the virtual machine. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :keyword security_profile: Specifies the Security related profile settings for the virtual machine. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :keyword network_profile_configuration: Specifies the network profile configuration of the virtual machine. :paramtype network_profile_configuration: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration :keyword diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :keyword availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -15073,7 +15534,7 @@ def __init__( # pylint: disable=too-many-locals Azure `_. Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. - :paramtype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -15088,7 +15549,7 @@ def __init__( # pylint: disable=too-many-locals :paramtype license_type: str :keyword protection_policy: Specifies the protection policy of the virtual machine. :paramtype protection_policy: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMProtectionPolicy + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMProtectionPolicy :keyword user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :paramtype user_data: str @@ -15105,6 +15566,7 @@ def __init__( # pylint: disable=too-many-locals self.vm_id = None self.instance_view = None self.hardware_profile = hardware_profile + self.resilient_vm_deletion_status = resilient_vm_deletion_status self.storage_profile = storage_profile self.additional_capabilities = additional_capabilities self.os_profile = os_profile @@ -15160,7 +15622,7 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): :vartype provisioning_state: str :ivar instance_view: The virtual machine extension instance view. :vartype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView :ivar suppress_failures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. @@ -15168,7 +15630,7 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :ivar provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :vartype provision_after_extensions: list[str] @@ -15249,7 +15711,7 @@ def __init__( :paramtype protected_settings: JSON :keyword instance_view: The virtual machine extension instance view. :paramtype instance_view: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView :keyword suppress_failures: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. @@ -15257,7 +15719,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference :keyword provision_after_extensions: Collection of extension names after which this extension needs to be provisioned. :paramtype provision_after_extensions: list[str] @@ -15285,7 +15747,7 @@ class VirtualMachineScaleSetVMExtensionsListResult(_serialization.Model): # pyl """The List VMSS VM Extension operation response. :ivar value: The list of VMSS VM extensions. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] """ _attribute_map = { @@ -15298,7 +15760,7 @@ def __init__( """ :keyword value: The list of VMSS VM extensions. :paramtype value: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] """ super().__init__(**kwargs) self.value = value @@ -15313,7 +15775,7 @@ class VirtualMachineScaleSetVMExtensionsSummary(_serialization.Model): # pylint :vartype name: str :ivar statuses_summary: The extensions information. :vartype statuses_summary: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineStatusCodeCount] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineStatusCodeCount] """ _validation = { @@ -15373,7 +15835,7 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): :ivar protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :vartype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ _validation = { @@ -15446,7 +15908,7 @@ def __init__( :keyword protected_settings_from_key_vault: The extensions protected settings that are passed by reference, and consumed from key vault. :paramtype protected_settings_from_key_vault: - ~azure.mgmt.compute.v2024_07_01.models.KeyVaultSecretReference + ~azure.mgmt.compute.v2024_11_01.models.KeyVaultSecretReference """ super().__init__(**kwargs) self.name = None @@ -15525,23 +15987,24 @@ class VirtualMachineScaleSetVMInstanceView(_serialization.Model): :ivar rdp_thumb_print: The Remote desktop certificate thumbprint. :vartype rdp_thumb_print: str :ivar vm_agent: The VM Agent running on the virtual machine. - :vartype vm_agent: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAgentInstanceView + :vartype vm_agent: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAgentInstanceView :ivar maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. :vartype maintenance_redeploy_status: - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceRedeployStatus + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceRedeployStatus :ivar disks: The disks information. - :vartype disks: list[~azure.mgmt.compute.v2024_07_01.models.DiskInstanceView] + :vartype disks: list[~azure.mgmt.compute.v2024_11_01.models.DiskInstanceView] :ivar extensions: The extensions information. :vartype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView] - :ivar vm_health: The health status for the VM. - :vartype vm_health: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineHealthStatus + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The application health status for the VM, provided through Application Health + Extension or Load Balancer Health Probes. + :vartype vm_health: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineHealthStatus :ivar boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnosticsInstanceView + :vartype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnosticsInstanceView :ivar statuses: The resource status information. - :vartype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :vartype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :ivar assigned_host: Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01. @@ -15562,7 +16025,7 @@ class VirtualMachineScaleSetVMInstanceView(_serialization.Model): :vartype os_version: str :ivar hyper_v_generation: The hypervisor generation of the Virtual Machine [V1, V2]. Known values are: "V1" and "V2". - :vartype hyper_v_generation: str or ~azure.mgmt.compute.v2024_07_01.models.HyperVGeneration + :vartype hyper_v_generation: str or ~azure.mgmt.compute.v2024_11_01.models.HyperVGeneration """ _validation = { @@ -15616,21 +16079,21 @@ def __init__( :keyword rdp_thumb_print: The Remote desktop certificate thumbprint. :paramtype rdp_thumb_print: str :keyword vm_agent: The VM Agent running on the virtual machine. - :paramtype vm_agent: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAgentInstanceView + :paramtype vm_agent: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAgentInstanceView :keyword maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. :paramtype maintenance_redeploy_status: - ~azure.mgmt.compute.v2024_07_01.models.MaintenanceRedeployStatus + ~azure.mgmt.compute.v2024_11_01.models.MaintenanceRedeployStatus :keyword disks: The disks information. - :paramtype disks: list[~azure.mgmt.compute.v2024_07_01.models.DiskInstanceView] + :paramtype disks: list[~azure.mgmt.compute.v2024_11_01.models.DiskInstanceView] :keyword extensions: The extensions information. :paramtype extensions: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionInstanceView] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionInstanceView] :keyword boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. - :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_07_01.models.BootDiagnosticsInstanceView + :paramtype boot_diagnostics: ~azure.mgmt.compute.v2024_11_01.models.BootDiagnosticsInstanceView :keyword statuses: The resource status information. - :paramtype statuses: list[~azure.mgmt.compute.v2024_07_01.models.InstanceViewStatus] + :paramtype statuses: list[~azure.mgmt.compute.v2024_11_01.models.InstanceViewStatus] :keyword placement_group_id: The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. :paramtype placement_group_id: str @@ -15647,7 +16110,7 @@ def __init__( :paramtype os_version: str :keyword hyper_v_generation: The hypervisor generation of the Virtual Machine [V1, V2]. Known values are: "V1" and "V2". - :paramtype hyper_v_generation: str or ~azure.mgmt.compute.v2024_07_01.models.HyperVGeneration + :paramtype hyper_v_generation: str or ~azure.mgmt.compute.v2024_11_01.models.HyperVGeneration """ super().__init__(**kwargs) self.platform_update_domain = platform_update_domain @@ -15674,7 +16137,7 @@ class VirtualMachineScaleSetVMListResult(_serialization.Model): All required parameters must be populated in order to send to server. :ivar value: The list of virtual machine scale sets VMs. Required. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :ivar next_link: The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs. :vartype next_link: str @@ -15694,7 +16157,7 @@ def __init__( ) -> None: """ :keyword value: The list of virtual machine scale sets VMs. Required. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :keyword next_link: The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs. :paramtype next_link: str @@ -15709,7 +16172,7 @@ class VirtualMachineScaleSetVMNetworkProfileConfiguration(_serialization.Model): :ivar network_interface_configurations: The list of network configurations. :vartype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfiguration] """ _attribute_map = { @@ -15728,7 +16191,7 @@ def __init__( """ :keyword network_interface_configurations: The list of network configurations. :paramtype network_interface_configurations: - list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkConfiguration] + list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkConfiguration] """ super().__init__(**kwargs) self.network_interface_configurations = network_interface_configurations @@ -15741,24 +16204,24 @@ class VirtualMachineScaleSetVMProfile(_serialization.Model): :ivar os_profile: Specifies the operating system settings for the virtual machines in the scale set. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetOSProfile + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetOSProfile :ivar storage_profile: Specifies the storage settings for the virtual machine disks. :vartype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetStorageProfile :ivar network_profile: Specifies properties of the network interfaces of the virtual machines in the scale set. :vartype network_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkProfile :ivar security_profile: Specifies the Security related profile settings for the virtual machines in the scale set. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar extension_profile: Specifies a collection of settings for extensions installed on virtual machines in the scale set. :vartype extension_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionProfile :ivar license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -15773,43 +16236,43 @@ class VirtualMachineScaleSetVMProfile(_serialization.Model): :vartype license_type: str :ivar priority: Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview. Known values are: "Regular", "Low", and "Spot". - :vartype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :vartype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :vartype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :ivar billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :vartype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :vartype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. :vartype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :ivar user_data: UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :vartype user_data: str :ivar capacity_reservation: Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01. :vartype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :ivar application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :vartype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile :ivar hardware_profile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. :vartype hardware_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetHardwareProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetHardwareProfile :ivar service_artifact_reference: Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. :vartype service_artifact_reference: - ~azure.mgmt.compute.v2024_07_01.models.ServiceArtifactReference + ~azure.mgmt.compute.v2024_11_01.models.ServiceArtifactReference :ivar security_posture_reference: Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01. :vartype security_posture_reference: - ~azure.mgmt.compute.v2024_07_01.models.SecurityPostureReference + ~azure.mgmt.compute.v2024_11_01.models.SecurityPostureReference :ivar time_created: Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile. Minimum API version for this property is 2023-09-01. @@ -15866,24 +16329,24 @@ def __init__( """ :keyword os_profile: Specifies the operating system settings for the virtual machines in the scale set. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetOSProfile + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetOSProfile :keyword storage_profile: Specifies the storage settings for the virtual machine disks. :paramtype storage_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetStorageProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetStorageProfile :keyword network_profile: Specifies properties of the network interfaces of the virtual machines in the scale set. :paramtype network_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetNetworkProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetNetworkProfile :keyword security_profile: Specifies the Security related profile settings for the virtual machines in the scale set. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :keyword diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :keyword extension_profile: Specifies a collection of settings for extensions installed on virtual machines in the scale set. :paramtype extension_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionProfile :keyword license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -15898,43 +16361,43 @@ def __init__( :paramtype license_type: str :keyword priority: Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview. Known values are: "Regular", "Low", and "Spot". - :paramtype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :paramtype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :keyword eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :paramtype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :keyword billing_profile: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01. - :paramtype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :paramtype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :keyword scheduled_events_profile: Specifies Scheduled Event related configurations. :paramtype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :keyword user_data: UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :paramtype user_data: str :keyword capacity_reservation: Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01. :paramtype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :keyword application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :paramtype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :paramtype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile :keyword hardware_profile: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01. :paramtype hardware_profile: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetHardwareProfile + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetHardwareProfile :keyword service_artifact_reference: Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01. :paramtype service_artifact_reference: - ~azure.mgmt.compute.v2024_07_01.models.ServiceArtifactReference + ~azure.mgmt.compute.v2024_11_01.models.ServiceArtifactReference :keyword security_posture_reference: Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01. :paramtype security_posture_reference: - ~azure.mgmt.compute.v2024_07_01.models.SecurityPostureReference + ~azure.mgmt.compute.v2024_11_01.models.SecurityPostureReference """ super().__init__(**kwargs) self.os_profile = os_profile @@ -16071,7 +16534,7 @@ class VirtualMachineSizeListResult(_serialization.Model): """The List Virtual Machine operation response. :ivar value: The list of virtual machine sizes. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] """ _attribute_map = { @@ -16081,7 +16544,7 @@ class VirtualMachineSizeListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.VirtualMachineSize"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of virtual machine sizes. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] """ super().__init__(**kwargs) self.value = value @@ -16105,7 +16568,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): :ivar reboot_behavior: Describes the reboot requirements of the patch. Known values are: "Unknown", "NeverReboots", "AlwaysRequiresReboot", and "CanRequestReboot". :vartype reboot_behavior: str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchRebootBehavior + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchRebootBehavior :ivar activity_id: The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. :vartype activity_id: str @@ -16115,7 +16578,7 @@ class VirtualMachineSoftwarePatchProperties(_serialization.Model): :vartype last_modified_date_time: ~datetime.datetime :ivar assessment_state: Describes the availability of a given patch. Known values are: "Unknown" and "Available". - :vartype assessment_state: str or ~azure.mgmt.compute.v2024_07_01.models.PatchAssessmentState + :vartype assessment_state: str or ~azure.mgmt.compute.v2024_11_01.models.PatchAssessmentState """ _validation = { @@ -16199,33 +16662,33 @@ class VirtualMachineUpdate(UpdateResource): image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :vartype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :vartype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :ivar identity: The identity of the virtual machine, if configured. - :vartype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :vartype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :ivar zones: The virtual machine zones. :vartype zones: list[str] :ivar hardware_profile: Specifies the hardware settings for the virtual machine. - :vartype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :vartype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile :ivar scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. - :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + :vartype scheduled_events_policy: ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :ivar storage_profile: Specifies the storage settings for the virtual machine disks. - :vartype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :vartype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :ivar additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine. - :vartype additional_capabilities: ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + :vartype additional_capabilities: ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :ivar os_profile: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :vartype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :vartype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :ivar network_profile: Specifies the network interfaces of the virtual machine. - :vartype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :vartype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :ivar security_profile: Specifies the Security related profile settings for the virtual machine. - :vartype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :vartype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :ivar diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :vartype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :ivar availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -16237,41 +16700,41 @@ class VirtualMachineUpdate(UpdateResource): VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - :vartype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar virtual_machine_scale_set: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. - :vartype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar proximity_placement_group: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. - :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar priority: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values are: "Regular", "Low", and "Spot". - :vartype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :vartype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :ivar eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :vartype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :ivar billing_profile: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. - :vartype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :vartype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :ivar host: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. - :vartype host: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype host: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar host_group: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. - :vartype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :vartype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. - :vartype instance_view: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstanceView + :vartype instance_view: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstanceView :ivar license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -16301,17 +16764,17 @@ class VirtualMachineUpdate(UpdateResource): :vartype platform_fault_domain: int :ivar scheduled_events_profile: Specifies Scheduled Event related configurations. :vartype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :ivar user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :vartype user_data: str :ivar capacity_reservation: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. :vartype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :ivar application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :vartype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :vartype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile :ivar time_created: Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. :vartype time_created: ~datetime.datetime @@ -16398,35 +16861,35 @@ def __init__( # pylint: disable=too-many-locals image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. - :paramtype plan: ~azure.mgmt.compute.v2024_07_01.models.Plan + :paramtype plan: ~azure.mgmt.compute.v2024_11_01.models.Plan :keyword identity: The identity of the virtual machine, if configured. - :paramtype identity: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineIdentity + :paramtype identity: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineIdentity :keyword zones: The virtual machine zones. :paramtype zones: list[str] :keyword hardware_profile: Specifies the hardware settings for the virtual machine. - :paramtype hardware_profile: ~azure.mgmt.compute.v2024_07_01.models.HardwareProfile + :paramtype hardware_profile: ~azure.mgmt.compute.v2024_11_01.models.HardwareProfile :keyword scheduled_events_policy: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the virtual machine. :paramtype scheduled_events_policy: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsPolicy + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsPolicy :keyword storage_profile: Specifies the storage settings for the virtual machine disks. - :paramtype storage_profile: ~azure.mgmt.compute.v2024_07_01.models.StorageProfile + :paramtype storage_profile: ~azure.mgmt.compute.v2024_11_01.models.StorageProfile :keyword additional_capabilities: Specifies additional capabilities enabled or disabled on the virtual machine. :paramtype additional_capabilities: - ~azure.mgmt.compute.v2024_07_01.models.AdditionalCapabilities + ~azure.mgmt.compute.v2024_11_01.models.AdditionalCapabilities :keyword os_profile: Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned. - :paramtype os_profile: ~azure.mgmt.compute.v2024_07_01.models.OSProfile + :paramtype os_profile: ~azure.mgmt.compute.v2024_11_01.models.OSProfile :keyword network_profile: Specifies the network interfaces of the virtual machine. - :paramtype network_profile: ~azure.mgmt.compute.v2024_07_01.models.NetworkProfile + :paramtype network_profile: ~azure.mgmt.compute.v2024_11_01.models.NetworkProfile :keyword security_profile: Specifies the Security related profile settings for the virtual machine. - :paramtype security_profile: ~azure.mgmt.compute.v2024_07_01.models.SecurityProfile + :paramtype security_profile: ~azure.mgmt.compute.v2024_11_01.models.SecurityProfile :keyword diagnostics_profile: Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. - :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_07_01.models.DiagnosticsProfile + :paramtype diagnostics_profile: ~azure.mgmt.compute.v2024_11_01.models.DiagnosticsProfile :keyword availability_set: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability @@ -16438,37 +16901,37 @@ def __init__( # pylint: disable=too-many-locals VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. - :paramtype availability_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype availability_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword virtual_machine_scale_set: Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. This property cannot exist along with a non-null properties.availabilitySet reference. Minimum api‐version: 2019‐03‐01. - :paramtype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype virtual_machine_scale_set: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword proximity_placement_group: Specifies information about the proximity placement group that the virtual machine should be assigned to. Minimum api-version: 2018-04-01. - :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype proximity_placement_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword priority: Specifies the priority for the virtual machine. Minimum api-version: 2019-03-01. Known values are: "Regular", "Low", and "Spot". - :paramtype priority: str or ~azure.mgmt.compute.v2024_07_01.models.VirtualMachinePriorityTypes + :paramtype priority: str or ~azure.mgmt.compute.v2024_11_01.models.VirtualMachinePriorityTypes :keyword eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Known values are: "Deallocate" and "Delete". :paramtype eviction_policy: str or - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineEvictionPolicyTypes + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineEvictionPolicyTypes :keyword billing_profile: Specifies the billing related details of a Azure Spot virtual machine. Minimum api-version: 2019-03-01. - :paramtype billing_profile: ~azure.mgmt.compute.v2024_07_01.models.BillingProfile + :paramtype billing_profile: ~azure.mgmt.compute.v2024_11_01.models.BillingProfile :keyword host: Specifies information about the dedicated host that the virtual machine resides in. Minimum api-version: 2018-10-01. - :paramtype host: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype host: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword host_group: Specifies information about the dedicated host group that the virtual machine resides in. **Note:** User cannot specify both host and hostGroup properties. Minimum api-version: 2020-06-01. - :paramtype host_group: ~azure.mgmt.compute.v2024_07_01.models.SubResource + :paramtype host_group: ~azure.mgmt.compute.v2024_11_01.models.SubResource :keyword license_type: Specifies that the image or disk that is being used was licensed on-premises. :code:`
`\\ :code:`
` Possible values for Windows Server operating system are: :code:`
`\\ :code:`
` Windows_Client :code:`
`\\ :code:`
` Windows_Server @@ -16495,17 +16958,17 @@ def __init__( # pylint: disable=too-many-locals :paramtype platform_fault_domain: int :keyword scheduled_events_profile: Specifies Scheduled Event related configurations. :paramtype scheduled_events_profile: - ~azure.mgmt.compute.v2024_07_01.models.ScheduledEventsProfile + ~azure.mgmt.compute.v2024_11_01.models.ScheduledEventsProfile :keyword user_data: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. :paramtype user_data: str :keyword capacity_reservation: Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum api-version: 2021-04-01. :paramtype capacity_reservation: - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationProfile + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationProfile :keyword application_profile: Specifies the gallery applications that should be made available to the VM/VMSS. - :paramtype application_profile: ~azure.mgmt.compute.v2024_07_01.models.ApplicationProfile + :paramtype application_profile: ~azure.mgmt.compute.v2024_11_01.models.ApplicationProfile """ super().__init__(tags=tags, **kwargs) self.plan = plan @@ -16551,12 +17014,12 @@ class VMDiskSecurityProfile(_serialization.Model): Confidential VMs. Known values are: "VMGuestStateOnly", "DiskWithVMGuestState", and "NonPersistedTPM". :vartype security_encryption_type: str or - ~azure.mgmt.compute.v2024_07_01.models.SecurityEncryptionTypes + ~azure.mgmt.compute.v2024_11_01.models.SecurityEncryptionTypes :ivar disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob. :vartype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters """ _attribute_map = { @@ -16579,12 +17042,12 @@ def __init__( Confidential VMs. Known values are: "VMGuestStateOnly", "DiskWithVMGuestState", and "NonPersistedTPM". :paramtype security_encryption_type: str or - ~azure.mgmt.compute.v2024_07_01.models.SecurityEncryptionTypes + ~azure.mgmt.compute.v2024_11_01.models.SecurityEncryptionTypes :keyword disk_encryption_set: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob. :paramtype disk_encryption_set: - ~azure.mgmt.compute.v2024_07_01.models.DiskEncryptionSetParameters + ~azure.mgmt.compute.v2024_11_01.models.DiskEncryptionSetParameters """ super().__init__(**kwargs) self.security_encryption_type = security_encryption_type @@ -16672,7 +17135,7 @@ class VmImagesInEdgeZoneListResult(_serialization.Model): """The List VmImages in EdgeZone operation response. :ivar value: The list of VMImages in EdgeZone. - :vartype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :vartype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :ivar next_link: The URI to fetch the next page of VMImages in EdgeZone. Call ListNext() with this URI to fetch the next page of VmImages. :vartype next_link: str @@ -16692,7 +17155,7 @@ def __init__( ) -> None: """ :keyword value: The list of VMImages in EdgeZone. - :paramtype value: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :paramtype value: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :keyword next_link: The URI to fetch the next page of VMImages in EdgeZone. Call ListNext() with this URI to fetch the next page of VmImages. :paramtype next_link: str @@ -16793,13 +17256,13 @@ class WindowsConfiguration(_serialization.Model): :ivar additional_unattend_content: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. :vartype additional_unattend_content: - list[~azure.mgmt.compute.v2024_07_01.models.AdditionalUnattendContent] + list[~azure.mgmt.compute.v2024_11_01.models.AdditionalUnattendContent] :ivar patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on Windows. - :vartype patch_settings: ~azure.mgmt.compute.v2024_07_01.models.PatchSettings + :vartype patch_settings: ~azure.mgmt.compute.v2024_11_01.models.PatchSettings :ivar win_rm: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. - :vartype win_rm: ~azure.mgmt.compute.v2024_07_01.models.WinRMConfiguration + :vartype win_rm: ~azure.mgmt.compute.v2024_11_01.models.WinRMConfiguration :ivar enable_vm_agent_platform_updates: Indicates whether VMAgent Platform Updates are enabled for the Windows Virtual Machine. :vartype enable_vm_agent_platform_updates: bool @@ -16849,13 +17312,13 @@ def __init__( :keyword additional_unattend_content: Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. :paramtype additional_unattend_content: - list[~azure.mgmt.compute.v2024_07_01.models.AdditionalUnattendContent] + list[~azure.mgmt.compute.v2024_11_01.models.AdditionalUnattendContent] :keyword patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on Windows. - :paramtype patch_settings: ~azure.mgmt.compute.v2024_07_01.models.PatchSettings + :paramtype patch_settings: ~azure.mgmt.compute.v2024_11_01.models.PatchSettings :keyword win_rm: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell. - :paramtype win_rm: ~azure.mgmt.compute.v2024_07_01.models.WinRMConfiguration + :paramtype win_rm: ~azure.mgmt.compute.v2024_11_01.models.WinRMConfiguration """ super().__init__(**kwargs) self.provision_vm_agent = provision_vm_agent @@ -16873,7 +17336,7 @@ class WindowsParameters(_serialization.Model): :ivar classifications_to_include: The update classifications to select when installing patches for Windows. :vartype classifications_to_include: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchClassificationWindows] + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchClassificationWindows] :ivar kb_numbers_to_include: Kbs to include in the patch operation. :vartype kb_numbers_to_include: list[str] :ivar kb_numbers_to_exclude: Kbs to exclude in the patch operation. @@ -16908,7 +17371,7 @@ def __init__( :keyword classifications_to_include: The update classifications to select when installing patches for Windows. :paramtype classifications_to_include: list[str or - ~azure.mgmt.compute.v2024_07_01.models.VMGuestPatchClassificationWindows] + ~azure.mgmt.compute.v2024_11_01.models.VMGuestPatchClassificationWindows] :keyword kb_numbers_to_include: Kbs to include in the patch operation. :paramtype kb_numbers_to_include: list[str] :keyword kb_numbers_to_exclude: Kbs to exclude in the patch operation. @@ -16935,7 +17398,7 @@ class WindowsVMGuestPatchAutomaticByPlatformSettings(_serialization.Model): # p :ivar reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". :vartype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting :ivar bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching without accidental upgrades. :vartype bypass_platform_safety_checks_on_user_schedule: bool @@ -16960,7 +17423,7 @@ def __init__( :keyword reboot_setting: Specifies the reboot setting for all AutomaticByPlatform patch installation operations. Known values are: "Unknown", "IfRequired", "Never", and "Always". :paramtype reboot_setting: str or - ~azure.mgmt.compute.v2024_07_01.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting + ~azure.mgmt.compute.v2024_11_01.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting :keyword bypass_platform_safety_checks_on_user_schedule: Enables customer to schedule patching without accidental upgrades. :paramtype bypass_platform_safety_checks_on_user_schedule: bool @@ -16974,7 +17437,7 @@ class WinRMConfiguration(_serialization.Model): """Describes Windows Remote Management configuration of the VM. :ivar listeners: The list of Windows Remote Management listeners. - :vartype listeners: list[~azure.mgmt.compute.v2024_07_01.models.WinRMListener] + :vartype listeners: list[~azure.mgmt.compute.v2024_11_01.models.WinRMListener] """ _attribute_map = { @@ -16984,7 +17447,7 @@ class WinRMConfiguration(_serialization.Model): def __init__(self, *, listeners: Optional[List["_models.WinRMListener"]] = None, **kwargs: Any) -> None: """ :keyword listeners: The list of Windows Remote Management listeners. - :paramtype listeners: list[~azure.mgmt.compute.v2024_07_01.models.WinRMListener] + :paramtype listeners: list[~azure.mgmt.compute.v2024_11_01.models.WinRMListener] """ super().__init__(**kwargs) self.listeners = listeners @@ -16995,7 +17458,7 @@ class WinRMListener(_serialization.Model): :ivar protocol: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**. Known values are: "Http" and "Https". - :vartype protocol: str or ~azure.mgmt.compute.v2024_07_01.models.ProtocolTypes + :vartype protocol: str or ~azure.mgmt.compute.v2024_11_01.models.ProtocolTypes :ivar certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your @@ -17026,7 +17489,7 @@ def __init__( """ :keyword protocol: Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**. Known values are: "Http" and "Https". - :paramtype protocol: str or ~azure.mgmt.compute.v2024_07_01.models.ProtocolTypes + :paramtype protocol: str or ~azure.mgmt.compute.v2024_11_01.models.ProtocolTypes :keyword certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_patch.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_patch.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/models/_patch.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/models/_patch.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/__init__.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/__init__.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/__init__.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/_operations.py similarity index 93% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/_operations.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/_operations.py index 134f032082db..de3d9e4964eb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/_operations.py @@ -48,7 +48,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -67,7 +67,7 @@ def build_usage_list_request(location: str, subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -94,7 +94,7 @@ def build_virtual_machine_sizes_list_request(location: str, subscription_id: str _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -123,7 +123,7 @@ def build_virtual_machine_scale_sets_list_by_location_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -159,7 +159,7 @@ def build_virtual_machine_scale_sets_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -203,7 +203,7 @@ def build_virtual_machine_scale_sets_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -246,7 +246,7 @@ def build_virtual_machine_scale_sets_delete_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -284,7 +284,7 @@ def build_virtual_machine_scale_sets_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -322,7 +322,7 @@ def build_virtual_machine_scale_sets_deallocate_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -363,7 +363,7 @@ def build_virtual_machine_scale_sets_delete_instances_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -399,7 +399,7 @@ def build_virtual_machine_scale_sets_get_instance_view_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -430,7 +430,7 @@ def build_virtual_machine_scale_sets_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -460,7 +460,7 @@ def build_virtual_machine_scale_sets_list_all_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -488,7 +488,7 @@ def build_virtual_machine_scale_sets_list_skus_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -519,7 +519,7 @@ def build_virtual_machine_scale_sets_get_os_upgrade_history_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -555,7 +555,7 @@ def build_virtual_machine_scale_sets_power_off_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -591,7 +591,7 @@ def build_virtual_machine_scale_sets_restart_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -625,7 +625,7 @@ def build_virtual_machine_scale_sets_start_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -659,7 +659,7 @@ def build_virtual_machine_scale_sets_reapply_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -690,7 +690,7 @@ def build_virtual_machine_scale_sets_redeploy_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -724,7 +724,7 @@ def build_virtual_machine_scale_sets_perform_maintenance_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -758,7 +758,7 @@ def build_virtual_machine_scale_sets_update_instances_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -792,7 +792,7 @@ def build_virtual_machine_scale_sets_reimage_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -826,7 +826,7 @@ def build_virtual_machine_scale_sets_reimage_all_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -860,7 +860,7 @@ def build_virtual_machine_scale_sets_approve_rolling_upgrade_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -901,7 +901,7 @@ def build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_upda _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -937,7 +937,7 @@ def build_virtual_machine_scale_sets_convert_to_single_placement_group_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -971,7 +971,7 @@ def build_virtual_machine_scale_sets_set_orchestration_service_state_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1005,7 +1005,7 @@ def build_virtual_machine_scale_set_extensions_create_or_update_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1040,7 +1040,7 @@ def build_virtual_machine_scale_set_extensions_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1075,7 +1075,7 @@ def build_virtual_machine_scale_set_extensions_delete_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1113,7 +1113,7 @@ def build_virtual_machine_scale_set_extensions_get_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1147,7 +1147,7 @@ def build_virtual_machine_scale_set_extensions_list_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1178,7 +1178,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_cancel_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1209,7 +1209,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1240,7 +1240,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_req _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1271,7 +1271,7 @@ def build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1307,7 +1307,7 @@ def build_virtual_machine_scale_set_vm_extensions_create_or_update_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1348,7 +1348,7 @@ def build_virtual_machine_scale_set_vm_extensions_update_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1389,7 +1389,7 @@ def build_virtual_machine_scale_set_vm_extensions_delete_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1429,7 +1429,7 @@ def build_virtual_machine_scale_set_vm_extensions_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1470,7 +1470,7 @@ def build_virtual_machine_scale_set_vm_extensions_list_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1504,7 +1504,7 @@ def build_virtual_machine_scale_set_vms_reimage_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1539,7 +1539,7 @@ def build_virtual_machine_scale_set_vms_reimage_all_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1571,7 +1571,7 @@ def build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1603,7 +1603,7 @@ def build_virtual_machine_scale_set_vms_deallocate_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1642,7 +1642,7 @@ def build_virtual_machine_scale_set_vms_update_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -1687,7 +1687,7 @@ def build_virtual_machine_scale_set_vms_delete_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1727,7 +1727,7 @@ def build_virtual_machine_scale_set_vms_get_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1761,7 +1761,7 @@ def build_virtual_machine_scale_set_vms_get_instance_view_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1800,7 +1800,7 @@ def build_virtual_machine_scale_set_vms_list_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1845,7 +1845,7 @@ def build_virtual_machine_scale_set_vms_power_off_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1879,7 +1879,7 @@ def build_virtual_machine_scale_set_vms_restart_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1911,7 +1911,7 @@ def build_virtual_machine_scale_set_vms_start_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1943,7 +1943,7 @@ def build_virtual_machine_scale_set_vms_redeploy_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1981,7 +1981,7 @@ def build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2017,7 +2017,7 @@ def build_virtual_machine_scale_set_vms_perform_maintenance_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2049,7 +2049,7 @@ def build_virtual_machine_scale_set_vms_simulate_eviction_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2081,7 +2081,7 @@ def build_virtual_machine_scale_set_vms_attach_detach_data_disks_request( # pyl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2116,7 +2116,7 @@ def build_virtual_machine_scale_set_vms_run_command_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -2151,7 +2151,7 @@ def build_virtual_machine_extensions_create_or_update_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2186,7 +2186,7 @@ def build_virtual_machine_extensions_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2221,7 +2221,7 @@ def build_virtual_machine_extensions_delete_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2259,7 +2259,7 @@ def build_virtual_machine_extensions_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2293,7 +2293,7 @@ def build_virtual_machine_extensions_list_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2326,7 +2326,7 @@ def build_virtual_machines_list_by_location_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2356,7 +2356,7 @@ def build_virtual_machines_capture_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2396,7 +2396,7 @@ def build_virtual_machines_create_or_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2440,7 +2440,7 @@ def build_virtual_machines_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2483,7 +2483,7 @@ def build_virtual_machines_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2521,7 +2521,7 @@ def build_virtual_machines_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2554,7 +2554,7 @@ def build_virtual_machines_instance_view_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2585,7 +2585,7 @@ def build_virtual_machines_convert_to_managed_disks_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2616,7 +2616,7 @@ def build_virtual_machines_deallocate_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2649,7 +2649,7 @@ def build_virtual_machines_generalize_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2685,7 +2685,7 @@ def build_virtual_machines_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2724,7 +2724,7 @@ def build_virtual_machines_list_all_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2756,7 +2756,7 @@ def build_virtual_machines_list_available_sizes_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2787,7 +2787,7 @@ def build_virtual_machines_power_off_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2820,7 +2820,7 @@ def build_virtual_machines_reapply_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2851,7 +2851,7 @@ def build_virtual_machines_restart_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2882,7 +2882,7 @@ def build_virtual_machines_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2913,7 +2913,7 @@ def build_virtual_machines_redeploy_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2944,7 +2944,7 @@ def build_virtual_machines_reimage_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -2983,7 +2983,7 @@ def build_virtual_machines_retrieve_boot_diagnostics_data_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3018,7 +3018,7 @@ def build_virtual_machines_perform_maintenance_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3049,7 +3049,7 @@ def build_virtual_machines_simulate_eviction_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3080,7 +3080,7 @@ def build_virtual_machines_assess_patches_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3111,7 +3111,7 @@ def build_virtual_machines_install_patches_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3145,7 +3145,7 @@ def build_virtual_machines_attach_detach_data_disks_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3173,13 +3173,47 @@ def build_virtual_machines_attach_detach_data_disks_request( # pylint: disable= return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) +def build_virtual_machines_migrate_to_vm_scale_set_request( # pylint: disable=name-too-long + resource_group_name: str, vm_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/migrateToVirtualMachineScaleSet", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "vmName": _SERIALIZER.url("vm_name", vm_name, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_virtual_machines_run_command_request( # pylint: disable=name-too-long resource_group_name: str, vm_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -3213,7 +3247,7 @@ def build_virtual_machine_images_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3256,7 +3290,7 @@ def build_virtual_machine_images_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3295,7 +3329,7 @@ def build_virtual_machine_images_list_offers_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3326,7 +3360,7 @@ def build_virtual_machine_images_list_publishers_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3355,7 +3389,7 @@ def build_virtual_machine_images_list_skus_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3387,7 +3421,7 @@ def build_virtual_machine_images_list_by_edge_zone_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3412,6 +3446,53 @@ def build_virtual_machine_images_list_by_edge_zone_request( # pylint: disable=n return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_virtual_machine_images_list_with_properties_request( # pylint: disable=name-too-long + location: str, + publisher_name: str, + offer: str, + skus: str, + subscription_id: str, + *, + expand: Union[str, _models.Expand], + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + ) # pylint: disable=line-too-long + path_format_arguments = { + "location": _SERIALIZER.url("location", location, "str"), + "publisherName": _SERIALIZER.url("publisher_name", publisher_name, "str"), + "offer": _SERIALIZER.url("offer", offer, "str"), + "skus": _SERIALIZER.url("skus", skus, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + if top is not None: + _params["$top"] = _SERIALIZER.query("top", top, "int") + if orderby is not None: + _params["$orderby"] = _SERIALIZER.query("orderby", orderby, "str") + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + def build_virtual_machine_images_edge_zone_get_request( # pylint: disable=name-too-long location: str, edge_zone: str, @@ -3425,7 +3506,7 @@ def build_virtual_machine_images_edge_zone_get_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3470,7 +3551,7 @@ def build_virtual_machine_images_edge_zone_list_request( # pylint: disable=name _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3510,7 +3591,7 @@ def build_virtual_machine_images_edge_zone_list_offers_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3542,7 +3623,7 @@ def build_virtual_machine_images_edge_zone_list_publishers_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3573,7 +3654,7 @@ def build_virtual_machine_images_edge_zone_list_skus_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3606,7 +3687,7 @@ def build_virtual_machine_extension_images_get_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3639,7 +3720,7 @@ def build_virtual_machine_extension_images_list_types_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3678,7 +3759,7 @@ def build_virtual_machine_extension_images_list_versions_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3716,7 +3797,7 @@ def build_availability_sets_create_or_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3750,7 +3831,7 @@ def build_availability_sets_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3784,7 +3865,7 @@ def build_availability_sets_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3815,7 +3896,7 @@ def build_availability_sets_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3846,7 +3927,7 @@ def build_availability_sets_list_by_subscription_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3872,7 +3953,7 @@ def build_availability_sets_list_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3902,7 +3983,7 @@ def build_availability_sets_list_available_sizes_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -3927,13 +4008,146 @@ def build_availability_sets_list_available_sizes_request( # pylint: disable=nam return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_availability_sets_start_migration_to_virtual_machine_scale_set_request( # pylint: disable=name-too-long + resource_group_name: str, availability_set_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/startMigrationToVirtualMachineScaleSet", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "availabilitySetName": _SERIALIZER.url("availability_set_name", availability_set_name, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request( # pylint: disable=name-too-long + resource_group_name: str, availability_set_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/cancelMigrationToVirtualMachineScaleSet", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "availabilitySetName": _SERIALIZER.url("availability_set_name", availability_set_name, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_availability_sets_validate_migration_to_virtual_machine_scale_set_request( # pylint: disable=name-too-long + resource_group_name: str, availability_set_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/validateMigrationToVirtualMachineScaleSet", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "availabilitySetName": _SERIALIZER.url("availability_set_name", availability_set_name, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_availability_sets_convert_to_virtual_machine_scale_set_request( # pylint: disable=name-too-long + resource_group_name: str, availability_set_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/convertToVirtualMachineScaleSet", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "availabilitySetName": _SERIALIZER.url("availability_set_name", availability_set_name, "str"), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + def build_proximity_placement_groups_create_or_update_request( # pylint: disable=name-too-long resource_group_name: str, proximity_placement_group_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -3969,7 +4183,7 @@ def build_proximity_placement_groups_update_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4005,7 +4219,7 @@ def build_proximity_placement_groups_delete_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4043,7 +4257,7 @@ def build_proximity_placement_groups_get_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4080,7 +4294,7 @@ def build_proximity_placement_groups_list_by_subscription_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4108,7 +4322,7 @@ def build_proximity_placement_groups_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4138,7 +4352,7 @@ def build_dedicated_host_groups_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4172,7 +4386,7 @@ def build_dedicated_host_groups_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4206,7 +4420,7 @@ def build_dedicated_host_groups_delete_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4242,7 +4456,7 @@ def build_dedicated_host_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4275,7 +4489,7 @@ def build_dedicated_host_groups_list_by_resource_group_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4305,7 +4519,7 @@ def build_dedicated_host_groups_list_by_subscription_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4331,7 +4545,7 @@ def build_dedicated_hosts_create_or_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4366,7 +4580,7 @@ def build_dedicated_hosts_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4401,7 +4615,7 @@ def build_dedicated_hosts_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4439,7 +4653,7 @@ def build_dedicated_hosts_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4473,7 +4687,7 @@ def build_dedicated_hosts_list_by_host_group_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4504,7 +4718,7 @@ def build_dedicated_hosts_restart_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4536,7 +4750,7 @@ def build_dedicated_hosts_redeploy_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4568,7 +4782,7 @@ def build_dedicated_hosts_list_available_sizes_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4600,7 +4814,7 @@ def build_ssh_public_keys_list_by_subscription_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4626,7 +4840,7 @@ def build_ssh_public_keys_list_by_resource_group_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4656,7 +4870,7 @@ def build_ssh_public_keys_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4690,7 +4904,7 @@ def build_ssh_public_keys_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4724,7 +4938,7 @@ def build_ssh_public_keys_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4755,7 +4969,7 @@ def build_ssh_public_keys_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4786,7 +5000,7 @@ def build_ssh_public_keys_generate_key_pair_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4820,7 +5034,7 @@ def build_images_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4854,7 +5068,7 @@ def build_images_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -4888,7 +5102,7 @@ def build_images_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4919,7 +5133,7 @@ def build_images_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4952,7 +5166,7 @@ def build_images_list_by_resource_group_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4980,7 +5194,7 @@ def build_images_list_request(subscription_id: str, **kwargs: Any) -> HttpReques _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5006,7 +5220,7 @@ def build_restore_point_collections_create_or_update_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5042,7 +5256,7 @@ def build_restore_point_collections_update_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5078,7 +5292,7 @@ def build_restore_point_collections_delete_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5116,7 +5330,7 @@ def build_restore_point_collections_get_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5151,7 +5365,7 @@ def build_restore_point_collections_list_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5181,7 +5395,7 @@ def build_restore_point_collections_list_all_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5213,7 +5427,7 @@ def build_restore_points_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5254,7 +5468,7 @@ def build_restore_points_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5294,7 +5508,7 @@ def build_restore_points_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5330,7 +5544,7 @@ def build_capacity_reservation_groups_create_or_update_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5366,7 +5580,7 @@ def build_capacity_reservation_groups_update_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5402,7 +5616,7 @@ def build_capacity_reservation_groups_delete_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5440,7 +5654,7 @@ def build_capacity_reservation_groups_get_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5479,7 +5693,7 @@ def build_capacity_reservation_groups_list_by_resource_group_request( # pylint: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5515,7 +5729,7 @@ def build_capacity_reservation_groups_list_by_subscription_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5551,7 +5765,7 @@ def build_capacity_reservations_create_or_update_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5592,7 +5806,7 @@ def build_capacity_reservations_update_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5633,7 +5847,7 @@ def build_capacity_reservations_delete_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5673,7 +5887,7 @@ def build_capacity_reservations_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5709,7 +5923,7 @@ def build_capacity_reservations_list_by_capacity_reservation_group_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -5742,7 +5956,7 @@ def build_log_analytics_export_request_rate_by_interval_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5775,7 +5989,7 @@ def build_log_analytics_export_throttled_requests_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -5808,7 +6022,7 @@ def build_virtual_machine_run_commands_list_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -5837,7 +6051,7 @@ def build_virtual_machine_run_commands_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -5868,7 +6082,7 @@ def build_virtual_machine_run_commands_create_or_update_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -5903,7 +6117,7 @@ def build_virtual_machine_run_commands_update_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -5938,7 +6152,7 @@ def build_virtual_machine_run_commands_delete_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -5976,7 +6190,7 @@ def build_virtual_machine_run_commands_get_by_virtual_machine_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -6010,7 +6224,7 @@ def build_virtual_machine_run_commands_list_by_virtual_machine_request( # pylin _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -6048,7 +6262,7 @@ def build_virtual_machine_scale_set_vm_run_commands_create_or_update_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -6089,7 +6303,7 @@ def build_virtual_machine_scale_set_vm_run_commands_update_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json, text/json") @@ -6130,7 +6344,7 @@ def build_virtual_machine_scale_set_vm_run_commands_delete_request( # pylint: d _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -6170,7 +6384,7 @@ def build_virtual_machine_scale_set_vm_run_commands_get_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -6211,7 +6425,7 @@ def build_virtual_machine_scale_set_vm_run_commands_list_request( # pylint: dis _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-01")) accept = _headers.pop("Accept", "application/json, text/json") # Construct URL @@ -6245,7 +6459,7 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`operations` attribute. """ @@ -6266,13 +6480,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.ComputeOperationValue"]: :return: An iterator like instance of either ComputeOperationValue or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.ComputeOperationValue] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.ComputeOperationValue] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ComputeOperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6341,7 +6555,7 @@ class UsageOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`usage` attribute. """ @@ -6363,13 +6577,13 @@ def list(self, location: str, **kwargs: Any) -> Iterable["_models.Usage"]: :param location: The location for which resource usage is queried. Required. :type location: str :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.Usage] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.Usage] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ListUsagesResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6440,7 +6654,7 @@ class VirtualMachineSizesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_sizes` attribute. """ @@ -6462,13 +6676,13 @@ def list(self, location: str, **kwargs: Any) -> Iterable["_models.VirtualMachine :param location: The location upon which virtual-machine-sizes is queried. Required. :type location: str :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6539,7 +6753,7 @@ class VirtualMachineScaleSetsOperations: # pylint: disable=too-many-public-meth **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_sets` attribute. """ @@ -6563,13 +6777,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> Iterable["_models.Vi :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -6654,7 +6868,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -6723,7 +6937,7 @@ def begin_create_or_update( :param vm_scale_set_name: The name of the VM scale set to create or update. Required. :type vm_scale_set_name: str :param parameters: The scale set object. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -6738,7 +6952,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -6776,7 +6990,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -6799,7 +7013,7 @@ def begin_create_or_update( :type vm_scale_set_name: str :param parameters: The scale set object. Is either a VirtualMachineScaleSet type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -6811,13 +7025,13 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -6884,7 +7098,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -6953,7 +7167,7 @@ def begin_update( :param vm_scale_set_name: The name of the VM scale set to create or update. Required. :type vm_scale_set_name: str :param parameters: The scale set object. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdate :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -6968,7 +7182,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -7006,7 +7220,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -7029,7 +7243,7 @@ def begin_update( :type vm_scale_set_name: str :param parameters: The scale set object. Is either a VirtualMachineScaleSetUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetUpdate or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting @@ -7042,13 +7256,13 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -7108,7 +7322,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_delete_request( @@ -7165,7 +7379,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -7221,9 +7435,9 @@ def get( :keyword expand: The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation. "userData" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetVMScaleSets + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetVMScaleSets :return: VirtualMachineScaleSet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -7237,7 +7451,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSet] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_request( @@ -7289,7 +7503,7 @@ def _deallocate_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -7363,7 +7577,7 @@ def begin_deallocate( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword hibernate: Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only). Default value is None. @@ -7431,7 +7645,7 @@ def begin_deallocate( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :keyword hibernate: Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only). Default value is None. @@ -7443,7 +7657,7 @@ def begin_deallocate( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -7504,7 +7718,7 @@ def _delete_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -7573,7 +7787,7 @@ def begin_delete_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword force_deletion: Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview). Default value is None. :paramtype force_deletion: bool @@ -7635,7 +7849,7 @@ def begin_delete_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceRequiredIDs type or a IO[bytes] type. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] :keyword force_deletion: Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview). Default value is None. :paramtype force_deletion: bool @@ -7646,7 +7860,7 @@ def begin_delete_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -7698,7 +7912,7 @@ def get_instance_view( :param vm_scale_set_name: The name of the VM scale set. Required. :type vm_scale_set_name: str :return: VirtualMachineScaleSetInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -7712,7 +7926,7 @@ def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_get_instance_view_request( @@ -7752,13 +7966,13 @@ def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Vir :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7831,13 +8045,13 @@ def list_all(self, **kwargs: Any) -> Iterable["_models.VirtualMachineScaleSet"]: :return: An iterator like instance of either VirtualMachineScaleSet or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSet] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListWithLinkResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7914,13 +8128,13 @@ def list_skus( :return: An iterator like instance of either VirtualMachineScaleSetSku or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetSku] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetSku] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListSkusResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -7998,13 +8212,13 @@ def get_os_upgrade_history( :return: An iterator like instance of either UpgradeOperationHistoricalStatusInfo or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.UpgradeOperationHistoricalStatusInfo] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.UpgradeOperationHistoricalStatusInfo] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetListOSUpgradeHistory] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -8089,7 +8303,7 @@ def _power_off_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -8164,7 +8378,7 @@ def begin_power_off( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword skip_shutdown: The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified. Default value is False. @@ -8234,7 +8448,7 @@ def begin_power_off( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :keyword skip_shutdown: The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified. Default value is False. @@ -8246,7 +8460,7 @@ def begin_power_off( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -8305,7 +8519,7 @@ def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -8375,7 +8589,7 @@ def begin_restart( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8428,7 +8642,7 @@ def begin_restart( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -8436,7 +8650,7 @@ def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -8494,7 +8708,7 @@ def _start_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -8564,7 +8778,7 @@ def begin_start( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8617,7 +8831,7 @@ def begin_start( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -8625,7 +8839,7 @@ def begin_start( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -8677,7 +8891,7 @@ def _reapply_initial(self, resource_group_name: str, vm_scale_set_name: str, **k _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_reapply_request( @@ -8733,7 +8947,7 @@ def begin_reapply(self, resource_group_name: str, vm_scale_set_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -8790,7 +9004,7 @@ def _redeploy_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -8861,7 +9075,7 @@ def begin_redeploy( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -8916,7 +9130,7 @@ def begin_redeploy( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -8924,7 +9138,7 @@ def begin_redeploy( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -8982,7 +9196,7 @@ def _perform_maintenance_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9055,7 +9269,7 @@ def begin_perform_maintenance( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9114,7 +9328,7 @@ def begin_perform_maintenance( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -9122,7 +9336,7 @@ def begin_perform_maintenance( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9180,7 +9394,7 @@ def _update_instances_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9247,7 +9461,7 @@ def begin_update_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9300,7 +9514,7 @@ def begin_update_instances( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceRequiredIDs type or a IO[bytes] type. Required. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -9308,7 +9522,7 @@ def begin_update_instances( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9366,7 +9580,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9437,7 +9651,7 @@ def begin_reimage( :type vm_scale_set_name: str :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. Default value is None. :type vm_scale_set_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetReimageParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9493,7 +9707,7 @@ def begin_reimage( :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. Is either a VirtualMachineScaleSetReimageParameters type or a IO[bytes] type. Default value is None. :type vm_scale_set_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetReimageParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetReimageParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -9501,7 +9715,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9559,7 +9773,7 @@ def _reimage_all_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9630,7 +9844,7 @@ def begin_reimage_all( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9685,7 +9899,7 @@ def begin_reimage_all( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -9693,7 +9907,7 @@ def begin_reimage_all( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9751,7 +9965,7 @@ def _approve_rolling_upgrade_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -9825,7 +10039,7 @@ def begin_approve_rolling_upgrade( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -9880,7 +10094,7 @@ def begin_approve_rolling_upgrade( :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. Is either a VirtualMachineScaleSetVMInstanceIDs type or a IO[bytes] type. Default value is None. :type vm_instance_i_ds: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceIDs or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -9888,7 +10102,7 @@ def begin_approve_rolling_upgrade( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -9956,7 +10170,7 @@ def force_recovery_service_fabric_platform_update_domain_walk( # pylint: disabl requested. Default value is None. :paramtype placement_group_id: str :return: RecoveryWalkResponse or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RecoveryWalkResponse + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RecoveryWalkResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -9970,7 +10184,7 @@ def force_recovery_service_fabric_platform_update_domain_walk( # pylint: disabl _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RecoveryWalkResponse] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_sets_force_recovery_service_fabric_platform_update_domain_walk_request( @@ -10023,7 +10237,7 @@ def convert_to_single_placement_group( :type vm_scale_set_name: str :param parameters: The input object for ConvertToSinglePlacementGroup API. Required. :type parameters: - ~azure.mgmt.compute.v2024_07_01.models.VMScaleSetConvertToSinglePlacementGroupInput + ~azure.mgmt.compute.v2024_11_01.models.VMScaleSetConvertToSinglePlacementGroupInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10077,7 +10291,7 @@ def convert_to_single_placement_group( # pylint: disable=inconsistent-return-st :param parameters: The input object for ConvertToSinglePlacementGroup API. Is either a VMScaleSetConvertToSinglePlacementGroupInput type or a IO[bytes] type. Required. :type parameters: - ~azure.mgmt.compute.v2024_07_01.models.VMScaleSetConvertToSinglePlacementGroupInput or + ~azure.mgmt.compute.v2024_11_01.models.VMScaleSetConvertToSinglePlacementGroupInput or IO[bytes] :return: None or the result of cls(response) :rtype: None @@ -10094,7 +10308,7 @@ def convert_to_single_placement_group( # pylint: disable=inconsistent-return-st _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -10151,7 +10365,7 @@ def _set_orchestration_service_state_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -10217,7 +10431,7 @@ def begin_set_orchestration_service_state( Required. :type vm_scale_set_name: str :param parameters: The input object for SetOrchestrationServiceState API. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -10270,7 +10484,7 @@ def begin_set_orchestration_service_state( :type vm_scale_set_name: str :param parameters: The input object for SetOrchestrationServiceState API. Is either a OrchestrationServiceStateInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.OrchestrationServiceStateInput or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.OrchestrationServiceStateInput or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -10279,7 +10493,7 @@ def begin_set_orchestration_service_state( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -10326,7 +10540,7 @@ class VirtualMachineScaleSetExtensionsOperations: # pylint: disable=name-too-lo **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_extensions` attribute. """ @@ -10359,7 +10573,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -10431,14 +10645,14 @@ def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create VM scale set Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -10471,7 +10685,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -10496,17 +10710,17 @@ def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create VM scale set Extension operation. Is either a VirtualMachineScaleSetExtension type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -10570,7 +10784,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -10642,14 +10856,14 @@ def begin_update( :param extension_parameters: Parameters supplied to the Update VM scale set Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -10682,7 +10896,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -10708,17 +10922,17 @@ def begin_update( operation. Is either a VirtualMachineScaleSetExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtensionUpdate or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -10777,7 +10991,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_delete_request( @@ -10834,7 +11048,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -10893,7 +11107,7 @@ def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -10907,7 +11121,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_extensions_get_request( @@ -10953,13 +11167,13 @@ def list( :return: An iterator like instance of either VirtualMachineScaleSetExtension or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetExtension] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetExtensionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -11031,7 +11245,7 @@ class VirtualMachineScaleSetRollingUpgradesOperations: # pylint: disable=name-t **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_rolling_upgrades` attribute. """ @@ -11057,7 +11271,7 @@ def _cancel_initial(self, resource_group_name: str, vm_scale_set_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_cancel_request( @@ -11108,7 +11322,7 @@ def begin_cancel(self, resource_group_name: str, vm_scale_set_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11159,7 +11373,7 @@ def _start_os_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_os_upgrade_request( @@ -11214,7 +11428,7 @@ def begin_start_os_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11265,7 +11479,7 @@ def _start_extension_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_start_extension_upgrade_request( @@ -11320,7 +11534,7 @@ def begin_start_extension_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -11368,7 +11582,7 @@ def get_latest( :param vm_scale_set_name: The name of the VM scale set. Required. :type vm_scale_set_name: str :return: RollingUpgradeStatusInfo or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RollingUpgradeStatusInfo + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RollingUpgradeStatusInfo :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -11382,7 +11596,7 @@ def get_latest( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RollingUpgradeStatusInfo] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_rolling_upgrades_get_latest_request( @@ -11420,7 +11634,7 @@ class VirtualMachineScaleSetVMExtensionsOperations: # pylint: disable=name-too- **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vm_extensions` attribute. """ @@ -11454,7 +11668,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -11529,14 +11743,14 @@ def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11571,7 +11785,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11598,17 +11812,17 @@ def begin_create_or_update( :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Is either a VirtualMachineScaleSetVMExtension type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -11674,7 +11888,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -11749,14 +11963,14 @@ def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11791,7 +12005,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -11819,17 +12033,17 @@ def begin_update( operation. Is either a VirtualMachineScaleSetVMExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionUpdate or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -11889,7 +12103,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_delete_request( @@ -11948,7 +12162,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12011,7 +12225,7 @@ def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetVMExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12025,7 +12239,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_get_request( @@ -12080,7 +12294,7 @@ def list( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineScaleSetVMExtensionsListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMExtensionsListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMExtensionsListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -12094,7 +12308,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_extensions_list_request( @@ -12136,7 +12350,7 @@ class VirtualMachineScaleSetVMsOperations: # pylint: disable=too-many-public-me **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vms` attribute. """ @@ -12171,7 +12385,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12245,7 +12459,7 @@ def begin_reimage( :param vm_scale_set_vm_reimage_input: Parameters for the Reimaging Virtual machine in ScaleSet. Default value is None. :type vm_scale_set_vm_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMReimageParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -12307,7 +12521,7 @@ def begin_reimage( Is either a VirtualMachineScaleSetVMReimageParameters type or a IO[bytes] type. Default value is None. :type vm_scale_set_vm_reimage_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMReimageParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMReimageParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -12315,7 +12529,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -12370,7 +12584,7 @@ def _reimage_all_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_reimage_all_request( @@ -12427,7 +12641,7 @@ def begin_reimage_all( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12479,7 +12693,7 @@ def _approve_rolling_upgrade_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_approve_rolling_upgrade_request( @@ -12538,7 +12752,7 @@ def begin_approve_rolling_upgrade( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12590,7 +12804,7 @@ def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_deallocate_request( @@ -12648,7 +12862,7 @@ def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -12708,7 +12922,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -12783,7 +12997,7 @@ def begin_update( :type instance_id: str :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -12798,7 +13012,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12841,7 +13055,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -12868,7 +13082,7 @@ def begin_update( :type instance_id: str :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. Is either a VirtualMachineScaleSetVM type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -12880,13 +13094,13 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -12953,7 +13167,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_delete_request( @@ -13019,7 +13233,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13078,10 +13292,12 @@ def get( :type instance_id: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual - machine. Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + machine. 'resiliencyView' will retrieve the instance view of the Virtual machine (if + applicable) and include 'resilientVMDeletionStatus' as part of it. Known values are: + "instanceView", "userData", and "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: VirtualMachineScaleSetVM or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13095,7 +13311,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVM] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_request( @@ -13141,7 +13357,7 @@ def get_instance_view( :param instance_id: The instance ID of the virtual machine. Required. :type instance_id: str :return: VirtualMachineScaleSetVMInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVMInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVMInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13155,7 +13371,7 @@ def get_instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_get_instance_view_request( @@ -13217,13 +13433,13 @@ def list( :return: An iterator like instance of either VirtualMachineScaleSetVM or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineScaleSetVM] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineScaleSetVM] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineScaleSetVMListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -13311,7 +13527,7 @@ def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_power_off_request( @@ -13381,7 +13597,7 @@ def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13434,7 +13650,7 @@ def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_restart_request( @@ -13490,7 +13706,7 @@ def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13542,7 +13758,7 @@ def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_start_request( @@ -13598,7 +13814,7 @@ def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13650,7 +13866,7 @@ def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_redeploy_request( @@ -13707,7 +13923,7 @@ def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13769,7 +13985,7 @@ def retrieve_boot_diagnostics_data( with a default expiration duration of 120 minutes. Default value is None. :paramtype sas_uri_expiration_time_in_minutes: int :return: RetrieveBootDiagnosticsDataResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RetrieveBootDiagnosticsDataResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RetrieveBootDiagnosticsDataResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -13783,7 +13999,7 @@ def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data_request( @@ -13830,7 +14046,7 @@ def _perform_maintenance_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_perform_maintenance_request( @@ -13886,7 +14102,7 @@ def begin_perform_maintenance( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -13951,7 +14167,7 @@ def simulate_eviction( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vms_simulate_eviction_request( @@ -13998,7 +14214,7 @@ def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14072,13 +14288,13 @@ def begin_attach_detach_data_disks( :type instance_id: str :param parameters: Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14109,7 +14325,7 @@ def begin_attach_detach_data_disks( :paramtype content_type: str :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14133,17 +14349,17 @@ def begin_attach_detach_data_disks( :param parameters: Parameters supplied to the attach and detach data disks operation on a Virtual Machine Scale Sets VM. Is either a AttachDetachDataDisksRequest type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest or IO[bytes] :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14209,7 +14425,7 @@ def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14278,13 +14494,13 @@ def begin_run_command( :param instance_id: The instance ID of the virtual machine. Required. :type instance_id: str :param parameters: Parameters supplied to the Run command operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14314,7 +14530,7 @@ def begin_run_command( :paramtype content_type: str :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14337,16 +14553,16 @@ def begin_run_command( :type instance_id: str :param parameters: Parameters supplied to the Run command operation. Is either a RunCommandInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput or IO[bytes] :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14400,7 +14616,7 @@ class VirtualMachineExtensionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_extensions` attribute. """ @@ -14433,7 +14649,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14504,14 +14720,14 @@ def begin_create_or_update( :type vm_extension_name: str :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Required. - :type extension_parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension + :type extension_parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14544,7 +14760,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14568,18 +14784,18 @@ def begin_create_or_update( :type vm_extension_name: str :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension operation. Is either a VirtualMachineExtension type or a IO[bytes] type. Required. - :type extension_parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension or + :type extension_parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14643,7 +14859,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -14715,14 +14931,14 @@ def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionUpdate + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14755,7 +14971,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -14780,17 +14996,17 @@ def begin_update( :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension operation. Is either a VirtualMachineExtensionUpdate type or a IO[bytes] type. Required. :type extension_parameters: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionUpdate or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionUpdate or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -14849,7 +15065,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_delete_request( @@ -14906,7 +15122,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -14965,7 +15181,7 @@ def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineExtension or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtension + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtension :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -14979,7 +15195,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtension] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_get_request( @@ -15025,7 +15241,7 @@ def list( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineExtensionsListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionsListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionsListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -15039,7 +15255,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtensionsListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_extensions_list_request( @@ -15078,7 +15294,7 @@ class VirtualMachinesOperations: # pylint: disable=too-many-public-methods **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machines` attribute. """ @@ -15100,13 +15316,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> Iterable["_models.Vi Required. :type location: str :return: An iterator like instance of either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -15188,7 +15404,7 @@ def _capture_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -15254,14 +15470,14 @@ def begin_capture( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Capture Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15290,7 +15506,7 @@ def begin_capture( :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15311,18 +15527,18 @@ def begin_capture( :type vm_name: str :param parameters: Parameters supplied to the Capture Virtual Machine operation. Is either a VirtualMachineCaptureParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureParameters or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineCaptureResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineCaptureResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineCaptureResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -15389,7 +15605,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -15459,7 +15675,7 @@ def begin_create_or_update( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Create Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -15473,7 +15689,7 @@ def begin_create_or_update( :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15511,7 +15727,7 @@ def begin_create_or_update( :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15535,7 +15751,7 @@ def begin_create_or_update( :type vm_name: str :param parameters: Parameters supplied to the Create Virtual Machine operation. Is either a VirtualMachine type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -15546,13 +15762,13 @@ def begin_create_or_update( :paramtype if_none_match: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -15619,7 +15835,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -15688,7 +15904,7 @@ def begin_update( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :param parameters: Parameters supplied to the Update Virtual Machine operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineUpdate :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -15702,7 +15918,7 @@ def begin_update( :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15739,7 +15955,7 @@ def begin_update( :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -15762,7 +15978,7 @@ def begin_update( :type vm_name: str :param parameters: Parameters supplied to the Update Virtual Machine operation. Is either a VirtualMachineUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineUpdate or IO[bytes] :keyword if_match: The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. Default value is None. @@ -15773,13 +15989,13 @@ def begin_update( :paramtype if_none_match: str :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -15839,7 +16055,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_delete_request( @@ -15886,8 +16102,14 @@ def begin_delete( :type resource_group_name: str :param vm_name: The name of the virtual machine. Required. :type vm_name: str - :keyword force_deletion: Optional parameter to force delete virtual machines. Default value is - None. + :keyword force_deletion: Optional parameter to force delete virtual machines. + NOTE: As of api-version 2024-11-01, we are rolling out a feature where if the forceDeletion + parameter is unspecified OR not explicitly set to false, AND all of the VM's attached disks + including the OS disk are marked with the delete option, then the VM will be force deleted. For + more details on how to configure delete options for a VM's resources, see `Delete a VM and + attached resources `_. To + avoid defaulting to force delete, ensure that the forceDeletion parameter is explicitly set to + false. This feature is expected to rollout by end of March 2025. Default value is None. :paramtype force_deletion: bool :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -15896,7 +16118,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -15953,10 +16175,10 @@ def get( snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation. - Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + Known values are: "instanceView", "userData", and "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: VirtualMachine or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachine + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachine :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -15970,7 +16192,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachine] = kwargs.pop("cls", None) _request = build_virtual_machines_get_request( @@ -16013,7 +16235,7 @@ def instance_view( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :return: VirtualMachineInstanceView or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstanceView + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstanceView :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -16027,7 +16249,7 @@ def instance_view( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineInstanceView] = kwargs.pop("cls", None) _request = build_virtual_machines_instance_view_request( @@ -16072,7 +16294,7 @@ def _convert_to_managed_disks_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_convert_to_managed_disks_request( @@ -16124,7 +16346,7 @@ def begin_convert_to_managed_disks(self, resource_group_name: str, vm_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16175,7 +16397,7 @@ def _deallocate_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_deallocate_request( @@ -16232,7 +16454,7 @@ def begin_deallocate( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16300,7 +16522,7 @@ def generalize( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_generalize_request( @@ -16350,15 +16572,15 @@ def list( :keyword expand: The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypeForListVMs + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypeForListVMs :return: An iterator like instance of either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16448,15 +16670,15 @@ def list_all( :keyword expand: The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForListVMs + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForListVMs :return: An iterator like instance of either VirtualMachine or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachine] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachine] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16534,13 +16756,13 @@ def list_available_sizes( :param vm_name: The name of the virtual machine. Required. :type vm_name: str :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -16619,7 +16841,7 @@ def _power_off_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_power_off_request( @@ -16680,7 +16902,7 @@ def begin_power_off( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16730,7 +16952,7 @@ def _reapply_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_reapply_request( @@ -16781,7 +17003,7 @@ def begin_reapply(self, resource_group_name: str, vm_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16830,7 +17052,7 @@ def _restart_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_restart_request( @@ -16881,7 +17103,7 @@ def begin_restart(self, resource_group_name: str, vm_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -16930,7 +17152,7 @@ def _start_initial(self, resource_group_name: str, vm_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_start_request( @@ -16981,7 +17203,7 @@ def begin_start(self, resource_group_name: str, vm_name: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17030,7 +17252,7 @@ def _redeploy_initial(self, resource_group_name: str, vm_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_redeploy_request( @@ -17081,7 +17303,7 @@ def begin_redeploy(self, resource_group_name: str, vm_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17136,7 +17358,7 @@ def _reimage_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -17210,7 +17432,7 @@ def begin_reimage( :type vm_name: str :param parameters: Parameters supplied to the Reimage Virtual Machine operation. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineReimageParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineReimageParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -17272,7 +17494,7 @@ def begin_reimage( :type vm_name: str :param parameters: Parameters supplied to the Reimage Virtual Machine operation. Is either a VirtualMachineReimageParameters type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineReimageParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineReimageParameters or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] @@ -17281,7 +17503,7 @@ def begin_reimage( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -17341,7 +17563,7 @@ def retrieve_boot_diagnostics_data( with a default expiration duration of 120 minutes. Default value is None. :paramtype sas_uri_expiration_time_in_minutes: int :return: RetrieveBootDiagnosticsDataResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RetrieveBootDiagnosticsDataResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RetrieveBootDiagnosticsDataResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -17355,7 +17577,7 @@ def retrieve_boot_diagnostics_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RetrieveBootDiagnosticsDataResult] = kwargs.pop("cls", None) _request = build_virtual_machines_retrieve_boot_diagnostics_data_request( @@ -17399,7 +17621,7 @@ def _perform_maintenance_initial(self, resource_group_name: str, vm_name: str, * _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_perform_maintenance_request( @@ -17450,7 +17672,7 @@ def begin_perform_maintenance(self, resource_group_name: str, vm_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17512,7 +17734,7 @@ def simulate_eviction( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_virtual_machines_simulate_eviction_request( @@ -17551,7 +17773,7 @@ def _assess_patches_initial(self, resource_group_name: str, vm_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machines_assess_patches_request( @@ -17600,13 +17822,13 @@ def begin_assess_patches( :return: An instance of LROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineAssessPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineAssessPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineAssessPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -17667,7 +17889,7 @@ def _install_patches_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -17734,14 +17956,14 @@ def begin_install_patches( :param install_patches_input: Input for InstallPatches as directly received by the API. Required. :type install_patches_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesParameters + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17770,7 +17992,7 @@ def begin_install_patches( :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17791,17 +18013,17 @@ def begin_install_patches( :param install_patches_input: Input for InstallPatches as directly received by the API. Is either a VirtualMachineInstallPatchesParameters type or a IO[bytes] type. Required. :type install_patches_input: - ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesParameters or IO[bytes] + ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesParameters or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineInstallPatchesResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineInstallPatchesResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineInstallPatchesResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -17865,7 +18087,7 @@ def _attach_detach_data_disks_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -17935,13 +18157,13 @@ def begin_attach_detach_data_disks( :type vm_name: str :param parameters: Parameters supplied to the attach and detach data disks operation on the virtual machine. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17969,7 +18191,7 @@ def begin_attach_detach_data_disks( :paramtype content_type: str :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -17989,17 +18211,17 @@ def begin_attach_detach_data_disks( :type vm_name: str :param parameters: Parameters supplied to the attach and detach data disks operation on the virtual machine. Is either a AttachDetachDataDisksRequest type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AttachDetachDataDisksRequest or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AttachDetachDataDisksRequest or IO[bytes] :return: An instance of LROPoller that returns either StorageProfile or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.StorageProfile] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.StorageProfile] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageProfile] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -18045,11 +18267,11 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - def _run_command_initial( + def _migrate_to_vm_scale_set_initial( self, resource_group_name: str, vm_name: str, - parameters: Union[_models.RunCommandInput, IO[bytes]], + parameters: Optional[Union[_models.MigrateVMToVirtualMachineScaleSetInput, IO[bytes]]] = None, **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -18063,7 +18285,7 @@ def _run_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -18073,9 +18295,12 @@ def _run_command_initial( if isinstance(parameters, (IOBase, bytes)): _content = parameters else: - _json = self._serialize.body(parameters, "RunCommandInput") + if parameters is not None: + _json = self._serialize.body(parameters, "MigrateVMToVirtualMachineScaleSetInput") + else: + _json = None - _request = build_virtual_machines_run_command_request( + _request = build_virtual_machines_migrate_to_vm_scale_set_request( resource_group_name=resource_group_name, vm_name=vm_name, subscription_id=self._config.subscription_id, @@ -18096,7 +18321,7 @@ def _run_command_initial( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [202]: try: response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): @@ -18112,92 +18337,92 @@ def _run_command_initial( return deserialized # type: ignore @overload - def begin_run_command( + def begin_migrate_to_vm_scale_set( self, resource_group_name: str, vm_name: str, - parameters: _models.RunCommandInput, + parameters: Optional[_models.MigrateVMToVirtualMachineScaleSetInput] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.RunCommandResult]: - """Run command on the VM. + ) -> LROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :param vm_name: The name of the virtual machine. Required. :type vm_name: str - :param parameters: Parameters supplied to the Run command operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Default value + is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateVMToVirtualMachineScaleSetInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns either RunCommandResult or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def begin_run_command( + def begin_migrate_to_vm_scale_set( self, resource_group_name: str, vm_name: str, - parameters: IO[bytes], + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.RunCommandResult]: - """Run command on the VM. + ) -> LROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :param vm_name: The name of the virtual machine. Required. :type vm_name: str - :param parameters: Parameters supplied to the Run command operation. Required. + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Default value + is None. :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Known values are: 'application/json', 'text/json'. Default value is "application/json". + Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns either RunCommandResult or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def begin_run_command( + def begin_migrate_to_vm_scale_set( self, resource_group_name: str, vm_name: str, - parameters: Union[_models.RunCommandInput, IO[bytes]], + parameters: Optional[Union[_models.MigrateVMToVirtualMachineScaleSetInput, IO[bytes]]] = None, **kwargs: Any - ) -> LROPoller[_models.RunCommandResult]: - """Run command on the VM. + ) -> LROPoller[None]: + """Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :param vm_name: The name of the virtual machine. Required. :type vm_name: str - :param parameters: Parameters supplied to the Run command operation. Is either a - RunCommandInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RunCommandInput or IO[bytes] - :return: An instance of LROPoller that returns either RunCommandResult or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RunCommandResult] + :param parameters: Parameters supplied to the Migrate Virtual Machine operation. Is either a + MigrateVMToVirtualMachineScaleSetInput type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateVMToVirtualMachineScaleSetInput + or IO[bytes] + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) if cont_token is None: - raw_result = self._run_command_initial( + raw_result = self._migrate_to_vm_scale_set_initial( resource_group_name=resource_group_name, vm_name=vm_name, parameters=parameters, @@ -18211,22 +18436,207 @@ def begin_run_command( raw_result.http_response.read() # type: ignore kwargs.pop("error_map", None) - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RunCommandResult", pipeline_response.http_response) + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized + return cls(pipeline_response, None, {}) # type: ignore if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) + polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: - return LROPoller[_models.RunCommandResult].from_continuation_token( + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _run_command_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: Union[_models.RunCommandInput, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "RunCommandInput") + + _request = build_virtual_machines_run_command_request( + resource_group_name=resource_group_name, + vm_name=vm_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_run_command( + self, + resource_group_name: str, + vm_name: str, + parameters: _models.RunCommandInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.RunCommandResult]: + """Run command on the VM. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Run command operation. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either RunCommandResult or the result of + cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_run_command( + self, + resource_group_name: str, + vm_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.RunCommandResult]: + """Run command on the VM. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Run command operation. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Known values are: 'application/json', 'text/json'. Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either RunCommandResult or the result of + cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_run_command( + self, + resource_group_name: str, + vm_name: str, + parameters: Union[_models.RunCommandInput, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.RunCommandResult]: + """Run command on the VM. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. Required. + :type vm_name: str + :param parameters: Parameters supplied to the Run command operation. Is either a + RunCommandInput type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RunCommandInput or IO[bytes] + :return: An instance of LROPoller that returns either RunCommandResult or the result of + cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.RunCommandResult] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._run_command_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize("RunCommandResult", pipeline_response.http_response) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.RunCommandResult].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, @@ -18243,7 +18653,7 @@ class VirtualMachineImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_images` attribute. """ @@ -18274,7 +18684,7 @@ def get( :param version: A valid image SKU version. Required. :type version: str :return: VirtualMachineImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImage + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18288,7 +18698,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) _request = build_virtual_machine_images_get_request( @@ -18353,7 +18763,7 @@ def list( :keyword orderby: Default value is None. :paramtype orderby: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18367,7 +18777,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_request( @@ -18414,7 +18824,7 @@ def list_offers( :param publisher_name: A valid image publisher. Required. :type publisher_name: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18428,7 +18838,7 @@ def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_offers_request( @@ -18466,7 +18876,7 @@ def list_publishers(self, location: str, **kwargs: Any) -> List[_models.VirtualM :param location: The name of a supported Azure region. Required. :type location: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18480,7 +18890,7 @@ def list_publishers(self, location: str, **kwargs: Any) -> List[_models.VirtualM _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_publishers_request( @@ -18523,7 +18933,7 @@ def list_skus( :param offer: A valid image publisher offer. Required. :type offer: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18537,7 +18947,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_skus_request( @@ -18578,7 +18988,7 @@ def list_by_edge_zone(self, location: str, edge_zone: str, **kwargs: Any) -> _mo :param edge_zone: The name of the edge zone. Required. :type edge_zone: str :return: VmImagesInEdgeZoneListResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VmImagesInEdgeZoneListResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VmImagesInEdgeZoneListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18592,7 +19002,7 @@ def list_by_edge_zone(self, location: str, edge_zone: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VmImagesInEdgeZoneListResult] = kwargs.pop("cls", None) _request = build_virtual_machine_images_list_by_edge_zone_request( @@ -18623,49 +19033,46 @@ def list_by_edge_zone(self, location: str, edge_zone: str, **kwargs: Any) -> _mo return deserialized # type: ignore - -class VirtualMachineImagesEdgeZoneOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s - :attr:`virtual_machine_images_edge_zone` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - @distributed_trace - def get( - self, location: str, edge_zone: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: Any - ) -> _models.VirtualMachineImage: - """Gets a virtual machine image in an edge zone. + def list_with_properties( + self, + location: str, + publisher_name: str, + offer: str, + skus: str, + *, + expand: Union[str, _models.Expand], + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.VirtualMachineImage"]: + """list_with_properties. :param location: The name of a supported Azure region. Required. :type location: str - :param edge_zone: The name of the edge zone. Required. - :type edge_zone: str :param publisher_name: A valid image publisher. Required. :type publisher_name: str :param offer: A valid image publisher offer. Required. :type offer: str :param skus: A valid image SKU. Required. :type skus: str - :param version: A valid image SKU version. Required. - :type version: str - :return: VirtualMachineImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImage + :keyword expand: The expand expression to apply on the operation. "Properties" Required. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.Expand + :keyword top: Default value is None. + :paramtype top: int + :keyword orderby: Default value is None. + :paramtype orderby: str + :return: An iterator like instance of either VirtualMachineImage or the result of cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage] :raises ~azure.core.exceptions.HttpResponseError: """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineImagesWithPropertiesListResult] = kwargs.pop("cls", None) + error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -18674,25 +19081,135 @@ def get( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) + def prepare_request(next_link=None): + if not next_link: - _request = build_virtual_machine_images_edge_zone_get_request( - location=location, - edge_zone=edge_zone, - publisher_name=publisher_name, - offer=offer, - skus=skus, - version=version, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + _request = build_virtual_machine_images_list_with_properties_request( + location=location, + publisher_name=publisher_name, + offer=offer, + skus=skus, + subscription_id=self._config.subscription_id, + expand=expand, + top=top, + orderby=orderby, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineImagesWithPropertiesListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class VirtualMachineImagesEdgeZoneOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s + :attr:`virtual_machine_images_edge_zone` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") + + @distributed_trace + def get( + self, location: str, edge_zone: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: Any + ) -> _models.VirtualMachineImage: + """Gets a virtual machine image in an edge zone. + + :param location: The name of a supported Azure region. Required. + :type location: str + :param edge_zone: The name of the edge zone. Required. + :type edge_zone: str + :param publisher_name: A valid image publisher. Required. + :type publisher_name: str + :param offer: A valid image publisher offer. Required. + :type offer: str + :param skus: A valid image SKU. Required. + :type skus: str + :param version: A valid image SKU version. Required. + :type version: str + :return: VirtualMachineImage or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineImage] = kwargs.pop("cls", None) + + _request = build_virtual_machine_images_edge_zone_get_request( + location=location, + edge_zone=edge_zone, + publisher_name=publisher_name, + offer=offer, + skus=skus, + version=version, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access @@ -18748,7 +19265,7 @@ def list( Default value is None. :paramtype orderby: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18762,7 +19279,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_request( @@ -18813,7 +19330,7 @@ def list_offers( :param publisher_name: A valid image publisher. Required. :type publisher_name: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18827,7 +19344,7 @@ def list_offers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_offers_request( @@ -18870,7 +19387,7 @@ def list_publishers( :param edge_zone: The name of the edge zone. Required. :type edge_zone: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18884,7 +19401,7 @@ def list_publishers( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_publishers_request( @@ -18931,7 +19448,7 @@ def list_skus( :param offer: A valid image publisher offer. Required. :type offer: str :return: list of VirtualMachineImageResource or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineImageResource] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineImageResource] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -18945,7 +19462,7 @@ def list_skus( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineImageResource]] = kwargs.pop("cls", None) _request = build_virtual_machine_images_edge_zone_list_skus_request( @@ -18985,7 +19502,7 @@ class VirtualMachineExtensionImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_extension_images` attribute. """ @@ -19014,7 +19531,7 @@ def get( :param version: Required. :type version: str :return: VirtualMachineExtensionImage or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19028,7 +19545,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineExtensionImage] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_get_request( @@ -19072,7 +19589,7 @@ def list_types( :param publisher_name: Required. :type publisher_name: str :return: list of VirtualMachineExtensionImage or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19086,7 +19603,7 @@ def list_types( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_types_request( @@ -19144,7 +19661,7 @@ def list_versions( :keyword orderby: Default value is None. :paramtype orderby: str :return: list of VirtualMachineExtensionImage or the result of cls(response) - :rtype: list[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineExtensionImage] + :rtype: list[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineExtensionImage] :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19158,7 +19675,7 @@ def list_versions( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[List[_models.VirtualMachineExtensionImage]] = kwargs.pop("cls", None) _request = build_virtual_machine_extension_images_list_versions_request( @@ -19200,7 +19717,7 @@ class AvailabilitySetsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`availability_sets` attribute. """ @@ -19231,12 +19748,12 @@ def create_or_update( :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :param parameters: Parameters supplied to the Create Availability Set operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19262,7 +19779,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19282,9 +19799,9 @@ def create_or_update( :type availability_set_name: str :param parameters: Parameters supplied to the Create Availability Set operation. Is either a AvailabilitySet type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet or IO[bytes] :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19298,7 +19815,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -19358,12 +19875,12 @@ def update( :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :param parameters: Parameters supplied to the Update Availability Set operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySetUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySetUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19389,7 +19906,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19409,9 +19926,9 @@ def update( :type availability_set_name: str :param parameters: Parameters supplied to the Update Availability Set operation. Is either a AvailabilitySetUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySetUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySetUpdate or IO[bytes] :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19425,7 +19942,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) @@ -19493,7 +20010,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_availability_sets_delete_request( @@ -19529,7 +20046,7 @@ def get(self, resource_group_name: str, availability_set_name: str, **kwargs: An :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str :return: AvailabilitySet or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet + :rtype: ~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19543,7 +20060,7 @@ def get(self, resource_group_name: str, availability_set_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.AvailabilitySet] = kwargs.pop("cls", None) _request = build_availability_sets_get_request( @@ -19584,13 +20101,13 @@ def list_by_subscription( 'virtualMachines/$ref'. Default value is None. :paramtype expand: str :return: An iterator like instance of either AvailabilitySet or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -19654,22 +20171,486 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.AvailabilitySet"]: - """Lists all availability sets in a resource group. + @distributed_trace + def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.AvailabilitySet"]: + """Lists all availability sets in a resource group. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :return: An iterator like instance of either AvailabilitySet or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.AvailabilitySet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_availability_sets_list_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("AvailabilitySetListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_available_sizes( + self, resource_group_name: str, availability_set_name: str, **kwargs: Any + ) -> Iterable["_models.VirtualMachineSize"]: + """Lists all available virtual machine sizes that can be used to create a new virtual machine in + an existing availability set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineSize] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_availability_sets_list_available_sizes_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("VirtualMachineSizeListResult", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def start_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: _models.MigrateToVirtualMachineScaleSetInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def start_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def start_migration_to_virtual_machine_scale_set( # pylint: disable=inconsistent-return-statements,name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Union[_models.MigrateToVirtualMachineScaleSetInput, IO[bytes]], + **kwargs: Any + ) -> None: + """Start migration operation on an Availability Set to move its Virtual Machines to a Virtual + Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that + triggers a downtime on the Virtual Machine. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a MigrateToVirtualMachineScaleSetInput type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + or IO[bytes] + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "MigrateToVirtualMachineScaleSetInput") + + _request = build_availability_sets_start_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def cancel_migration_to_virtual_machine_scale_set( # pylint: disable=inconsistent-return-statements,name-too-long + self, resource_group_name: str, availability_set_name: str, **kwargs: Any + ) -> None: + """Cancel the migration operation on an Availability Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_availability_sets_cancel_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @overload + def validate_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: _models.MigrateToVirtualMachineScaleSetInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def validate_migration_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def validate_migration_to_virtual_machine_scale_set( # pylint: disable=inconsistent-return-statements,name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Union[_models.MigrateToVirtualMachineScaleSetInput, IO[bytes]], + **kwargs: Any + ) -> None: + """Validates that the Virtual Machines in the Availability Set can be migrated to the provided + Virtual Machine Scale Set. + + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a MigrateToVirtualMachineScaleSetInput type or a IO[bytes] type. Required. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.MigrateToVirtualMachineScaleSetInput + or IO[bytes] + :return: None or the result of cls(response) + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "MigrateToVirtualMachineScaleSetInput") + + _request = build_availability_sets_validate_migration_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response - :param resource_group_name: The name of the resource group. Required. - :type resource_group_name: str - :return: An iterator like instance of either AvailabilitySet or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.AvailabilitySet] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.AvailabilitySetListResult] = kwargs.pop("cls", None) + if cls: + return cls(pipeline_response, None, {}) # type: ignore + def _convert_to_virtual_machine_scale_set_initial( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[Union[_models.ConvertToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -19678,141 +20659,181 @@ def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Ava } error_map.update(kwargs.pop("error_map", {}) or {}) - def prepare_request(next_link=None): - if not next_link: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - _request = build_availability_sets_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + if parameters is not None: + _json = self._serialize.body(parameters, "ConvertToVirtualMachineScaleSetInput") else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request + _json = None - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailabilitySetListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + _request = build_availability_sets_convert_to_virtual_machine_scale_set_request( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) - def get_next(next_link=None): - _request = prepare_request(next_link) + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response + response = pipeline_response.http_response - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) - return pipeline_response + deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - return ItemPaged(get_next, extract_data) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore - @distributed_trace - def list_available_sizes( - self, resource_group_name: str, availability_set_name: str, **kwargs: Any - ) -> Iterable["_models.VirtualMachineSize"]: - """Lists all available virtual machine sizes that can be used to create a new virtual machine in - an existing availability set. + return deserialized # type: ignore + + @overload + def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[_models.ConvertToVirtualMachineScaleSetInput] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :param availability_set_name: The name of the availability set. Required. :type availability_set_name: str - :return: An iterator like instance of either VirtualMachineSize or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineSize] + :param parameters: Parameters supplied to the migrate operation on the availability set. + Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ConvertToVirtualMachineScaleSetInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) - cls: ClsType[_models.VirtualMachineSizeListResult] = kwargs.pop("cls", None) + @overload + def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[IO[bytes]] = None, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. + Default value is None. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ - def prepare_request(next_link=None): - if not next_link: + @distributed_trace + def begin_convert_to_virtual_machine_scale_set( # pylint: disable=name-too-long + self, + resource_group_name: str, + availability_set_name: str, + parameters: Optional[Union[_models.ConvertToVirtualMachineScaleSetInput, IO[bytes]]] = None, + **kwargs: Any + ) -> LROPoller[None]: + """Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the + Availability Set. This does not trigger a downtime on the Virtual Machines. - _request = build_availability_sets_list_available_sizes_request( - resource_group_name=resource_group_name, - availability_set_name=availability_set_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) + :param resource_group_name: The name of the resource group. Required. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. Required. + :type availability_set_name: str + :param parameters: Parameters supplied to the migrate operation on the availability set. Is + either a ConvertToVirtualMachineScaleSetInput type or a IO[bytes] type. Default value is None. + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ConvertToVirtualMachineScaleSetInput + or IO[bytes] + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._convert_to_virtual_machine_scale_set_initial( + resource_group_name=resource_group_name, + availability_set_name=availability_set_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) - def extract_data(pipeline_response): - deserialized = self._deserialize("VirtualMachineSizeListResult", pipeline_response) - list_of_elem = deserialized.value + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) + return cls(pipeline_response, None, {}) # type: ignore - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs + if polling is True: + polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore class ProximityPlacementGroupsOperations: @@ -19821,7 +20842,7 @@ class ProximityPlacementGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`proximity_placement_groups` attribute. """ @@ -19853,12 +20874,12 @@ def create_or_update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Create Proximity Placement Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19885,7 +20906,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -19905,9 +20926,9 @@ def create_or_update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Create Proximity Placement Group operation. Is either a ProximityPlacementGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup or IO[bytes] :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -19921,7 +20942,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -19982,12 +21003,12 @@ def update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Update Proximity Placement Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20014,7 +21035,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20034,10 +21055,10 @@ def update( :type proximity_placement_group_name: str :param parameters: Parameters supplied to the Update Proximity Placement Group operation. Is either a ProximityPlacementGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroupUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroupUpdate or IO[bytes] :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20051,7 +21072,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) @@ -20119,7 +21140,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_delete_request( @@ -20165,7 +21186,7 @@ def get( colocation status of all the resources in the proximity placement group. Default value is None. :paramtype include_colocation_status: str :return: ProximityPlacementGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20179,7 +21200,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroup] = kwargs.pop("cls", None) _request = build_proximity_placement_groups_get_request( @@ -20218,13 +21239,13 @@ def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ProximityPlac :return: An iterator like instance of either ProximityPlacementGroup or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20298,13 +21319,13 @@ def list_by_resource_group( :return: An iterator like instance of either ProximityPlacementGroup or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.ProximityPlacementGroup] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.ProximityPlacementGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ProximityPlacementGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20375,7 +21396,7 @@ class DedicatedHostGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`dedicated_host_groups` attribute. """ @@ -20408,12 +21429,12 @@ def create_or_update( :param host_group_name: The name of the dedicated host group. Required. :type host_group_name: str :param parameters: Parameters supplied to the Create Dedicated Host Group. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20441,7 +21462,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20463,9 +21484,9 @@ def create_or_update( :type host_group_name: str :param parameters: Parameters supplied to the Create Dedicated Host Group. Is either a DedicatedHostGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup or IO[bytes] :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20479,7 +21500,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -20539,12 +21560,12 @@ def update( :param host_group_name: The name of the dedicated host group. Required. :type host_group_name: str :param parameters: Parameters supplied to the Update Dedicated Host Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20570,7 +21591,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -20590,9 +21611,9 @@ def update( :type host_group_name: str :param parameters: Parameters supplied to the Update Dedicated Host Group operation. Is either a DedicatedHostGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroupUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroupUpdate or IO[bytes] :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20606,7 +21627,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) @@ -20674,7 +21695,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_delete_request( @@ -20718,11 +21739,11 @@ def get( :type host_group_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is - not supported for dedicated host group. Known values are: "instanceView" and "userData". - Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + not supported for dedicated host group. Known values are: "instanceView", "userData", and + "resiliencyView". Default value is None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -20736,7 +21757,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroup] = kwargs.pop("cls", None) _request = build_dedicated_host_groups_get_request( @@ -20776,13 +21797,13 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :return: An iterator like instance of either DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20852,13 +21873,13 @@ def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.DedicatedHost response to get the next page of dedicated host groups. :return: An iterator like instance of either DedicatedHostGroup or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHostGroup] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHostGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -20928,7 +21949,7 @@ class DedicatedHostsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`dedicated_hosts` attribute. """ @@ -20961,7 +21982,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -21030,13 +22051,13 @@ def begin_create_or_update( :param host_name: The name of the dedicated host . Required. :type host_name: str :param parameters: Parameters supplied to the Create Dedicated Host. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21066,7 +22087,7 @@ def begin_create_or_update( :paramtype content_type: str :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21089,16 +22110,16 @@ def begin_create_or_update( :type host_name: str :param parameters: Parameters supplied to the Create Dedicated Host. Is either a DedicatedHost type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost or IO[bytes] :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -21162,7 +22183,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -21231,13 +22252,13 @@ def begin_update( :param host_name: The name of the dedicated host . Required. :type host_name: str :param parameters: Parameters supplied to the Update Dedicated Host operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21267,7 +22288,7 @@ def begin_update( :paramtype content_type: str :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -21290,16 +22311,16 @@ def begin_update( :type host_name: str :param parameters: Parameters supplied to the Update Dedicated Host operation. Is either a DedicatedHostUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHostUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHostUpdate or IO[bytes] :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -21358,7 +22379,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_delete_request( @@ -21414,7 +22435,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21472,10 +22493,11 @@ def get( :type host_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated - host. Known values are: "instanceView" and "userData". Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.InstanceViewTypes + host. Known values are: "instanceView", "userData", and "resiliencyView". Default value is + None. + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.InstanceViewTypes :return: DedicatedHost or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.DedicatedHost + :rtype: ~azure.mgmt.compute.v2024_11_01.models.DedicatedHost :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -21489,7 +22511,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHost] = kwargs.pop("cls", None) _request = build_dedicated_hosts_get_request( @@ -21534,13 +22556,13 @@ def list_by_host_group( :param host_group_name: The name of the dedicated host group. Required. :type host_group_name: str :return: An iterator like instance of either DedicatedHost or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.DedicatedHost] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.DedicatedHost] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -21619,7 +22641,7 @@ def _restart_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_restart_request( @@ -21678,7 +22700,7 @@ def begin_restart( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21730,7 +22752,7 @@ def _redeploy_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_dedicated_hosts_redeploy_request( @@ -21793,7 +22815,7 @@ def begin_redeploy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -21852,7 +22874,7 @@ def list_available_sizes( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.DedicatedHostSizeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -21925,7 +22947,7 @@ class SshPublicKeysOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`ssh_public_keys` attribute. """ @@ -21947,13 +22969,13 @@ def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.SshPublicKeyR :return: An iterator like instance of either SshPublicKeyResource or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeysGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -22028,13 +23050,13 @@ def list_by_resource_group( :return: An iterator like instance of either SshPublicKeyResource or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeysGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -22115,12 +23137,12 @@ def create( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to create the SSH public key. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22146,7 +23168,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22166,9 +23188,9 @@ def create( :type ssh_public_key_name: str :param parameters: Parameters supplied to create the SSH public key. Is either a SshPublicKeyResource type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource or IO[bytes] :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22182,7 +23204,7 @@ def create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -22242,12 +23264,12 @@ def update( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to update the SSH public key. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyUpdateResource + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyUpdateResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22273,7 +23295,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22293,10 +23315,10 @@ def update( :type ssh_public_key_name: str :param parameters: Parameters supplied to update the SSH public key. Is either a SshPublicKeyUpdateResource type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyUpdateResource or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyUpdateResource or IO[bytes] :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22310,7 +23332,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) @@ -22378,7 +23400,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_ssh_public_keys_delete_request( @@ -22414,7 +23436,7 @@ def get(self, resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :return: SshPublicKeyResource or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyResource + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22428,7 +23450,7 @@ def get(self, resource_group_name: str, ssh_public_key_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.SshPublicKeyResource] = kwargs.pop("cls", None) _request = build_ssh_public_keys_get_request( @@ -22478,12 +23500,12 @@ def generate_key_pair( :param ssh_public_key_name: The name of the SSH public key. Required. :type ssh_public_key_name: str :param parameters: Parameters supplied to generate the SSH public key. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshGenerateKeyPairInputParameters + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshGenerateKeyPairInputParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22511,7 +23533,7 @@ def generate_key_pair( Default value is "application/json". :paramtype content_type: str :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22533,10 +23555,10 @@ def generate_key_pair( :type ssh_public_key_name: str :param parameters: Parameters supplied to generate the SSH public key. Is either a SshGenerateKeyPairInputParameters type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.SshGenerateKeyPairInputParameters or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.SshGenerateKeyPairInputParameters or IO[bytes] :return: SshPublicKeyGenerateKeyPairResult or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.SshPublicKeyGenerateKeyPairResult + :rtype: ~azure.mgmt.compute.v2024_11_01.models.SshPublicKeyGenerateKeyPairResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -22550,7 +23572,7 @@ def generate_key_pair( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SshPublicKeyGenerateKeyPairResult] = kwargs.pop("cls", None) @@ -22603,7 +23625,7 @@ class ImagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`images` attribute. """ @@ -22631,7 +23653,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -22696,12 +23718,12 @@ def begin_create_or_update( :param image_name: The name of the image. Required. :type image_name: str :param parameters: Parameters supplied to the Create Image operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.Image + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.Image :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22727,7 +23749,7 @@ def begin_create_or_update( Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22743,15 +23765,15 @@ def begin_create_or_update( :type image_name: str :param parameters: Parameters supplied to the Create Image operation. Is either a Image type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.Image or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.Image or IO[bytes] :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -22813,7 +23835,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -22878,12 +23900,12 @@ def begin_update( :param image_name: The name of the image. Required. :type image_name: str :param parameters: Parameters supplied to the Update Image operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ImageUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ImageUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22909,7 +23931,7 @@ def begin_update( Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -22929,15 +23951,15 @@ def begin_update( :type image_name: str :param parameters: Parameters supplied to the Update Image operation. Is either a ImageUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ImageUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ImageUpdate or IO[bytes] :return: An instance of LROPoller that returns either Image or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Image] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -22993,7 +24015,7 @@ def _delete_initial(self, resource_group_name: str, image_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_images_delete_request( @@ -23044,7 +24066,7 @@ def begin_delete(self, resource_group_name: str, image_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -23094,7 +24116,7 @@ def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: Image or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.Image + :rtype: ~azure.mgmt.compute.v2024_11_01.models.Image :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23108,7 +24130,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.Image] = kwargs.pop("cls", None) _request = build_images_get_request( @@ -23148,13 +24170,13 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite :param resource_group_name: The name of the resource group. Required. :type resource_group_name: str :return: An iterator like instance of either Image or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ImageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23224,13 +24246,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.Image"]: next page of Images. Do this till nextLink is null to fetch all the Images. :return: An iterator like instance of either Image or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.Image] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.Image] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.ImageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23300,7 +24322,7 @@ class RestorePointCollectionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`restore_point_collections` attribute. """ @@ -23334,12 +24356,12 @@ def create_or_update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Create or Update restore point collection operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -23368,7 +24390,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -23390,9 +24412,9 @@ def create_or_update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Create or Update restore point collection operation. Is either a RestorePointCollection type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection or IO[bytes] :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23406,7 +24428,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -23467,12 +24489,12 @@ def update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Update restore point collection operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -23499,7 +24521,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -23519,10 +24541,10 @@ def update( :type restore_point_collection_name: str :param parameters: Parameters supplied to the Update restore point collection operation. Is either a RestorePointCollectionUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionUpdate or IO[bytes] :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23536,7 +24558,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) @@ -23593,7 +24615,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_point_collections_delete_request( @@ -23647,7 +24669,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -23703,9 +24725,9 @@ def get( server will return all contained restore points in the restorePointCollection. "restorePoints" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollectionExpandOptions + ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollectionExpandOptions :return: RestorePointCollection or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -23719,7 +24741,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollection] = kwargs.pop("cls", None) _request = build_restore_point_collections_get_request( @@ -23760,13 +24782,13 @@ def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Res :return: An iterator like instance of either RestorePointCollection or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23839,13 +24861,13 @@ def list_all(self, **kwargs: Any) -> Iterable["_models.RestorePointCollection"]: :return: An iterator like instance of either RestorePointCollection or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.RestorePointCollection] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.RestorePointCollection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePointCollectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -23915,7 +24937,7 @@ class RestorePointsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`restore_points` attribute. """ @@ -23948,7 +24970,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -24018,13 +25040,13 @@ def begin_create( :param restore_point_name: The name of the restore point. Required. :type restore_point_name: str :param parameters: Parameters supplied to the Create restore point operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24055,7 +25077,7 @@ def begin_create( :paramtype content_type: str :return: An instance of LROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24079,16 +25101,16 @@ def begin_create( :type restore_point_name: str :param parameters: Parameters supplied to the Create restore point operation. Is either a RestorePoint type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint or IO[bytes] :return: An instance of LROPoller that returns either RestorePoint or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.RestorePoint] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.RestorePoint] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -24147,7 +25169,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_restore_points_delete_request( @@ -24203,7 +25225,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -24261,9 +25283,9 @@ def get( :type restore_point_name: str :keyword expand: The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. "instanceView" Default value is None. - :paramtype expand: str or ~azure.mgmt.compute.v2024_07_01.models.RestorePointExpandOptions + :paramtype expand: str or ~azure.mgmt.compute.v2024_11_01.models.RestorePointExpandOptions :return: RestorePoint or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RestorePoint + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RestorePoint :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -24277,7 +25299,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RestorePoint] = kwargs.pop("cls", None) _request = build_restore_points_get_request( @@ -24317,7 +25339,7 @@ class CapacityReservationGroupsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`capacity_reservation_groups` attribute. """ @@ -24350,12 +25372,12 @@ def create_or_update( :param capacity_reservation_group_name: The name of the capacity reservation group. Required. :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Create capacity reservation Group. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24383,7 +25405,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24405,9 +25427,9 @@ def create_or_update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Create capacity reservation Group. Is either a CapacityReservationGroup type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup or IO[bytes] :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -24421,7 +25443,7 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -24483,12 +25505,12 @@ def update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Update capacity reservation Group operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24516,7 +25538,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ @@ -24537,10 +25559,10 @@ def update( :type capacity_reservation_group_name: str :param parameters: Parameters supplied to the Update capacity reservation Group operation. Is either a CapacityReservationGroupUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupUpdate or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupUpdate or IO[bytes] :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -24554,7 +25576,7 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) @@ -24625,7 +25647,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_delete_request( @@ -24673,9 +25695,9 @@ def get( platform and can change outside of control plane operations. "instanceView" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroupInstanceViewTypes + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroupInstanceViewTypes :return: CapacityReservationGroup or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -24689,7 +25711,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroup] = kwargs.pop("cls", None) _request = build_capacity_reservation_groups_get_request( @@ -24739,17 +25761,17 @@ def list_by_resource_group( associated to capacity reservation group in the response. Known values are: "virtualMachineScaleSetVMs/$ref" and "virtualMachines/$ref". Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetCapacityReservationGroups :return: An iterator like instance of either CapacityReservationGroup or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24830,7 +25852,7 @@ def list_by_subscription( associated to capacity reservation group in the response. Known values are: "virtualMachineScaleSetVMs/$ref" and "virtualMachines/$ref". Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.ExpandTypesForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ExpandTypesForGetCapacityReservationGroups :keyword resource_ids_only: The query option to fetch Capacity Reservation Group Resource Ids. :code:`
` 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription. :code:`
` 'SharedWithSubscription' enables @@ -24839,17 +25861,17 @@ def list_by_subscription( group resources shared with the subscription and created in the subscription. Known values are: "CreatedInSubscription", "SharedWithSubscription", and "All". Default value is None. :paramtype resource_ids_only: str or - ~azure.mgmt.compute.v2024_07_01.models.ResourceIdOptionsForGetCapacityReservationGroups + ~azure.mgmt.compute.v2024_11_01.models.ResourceIdOptionsForGetCapacityReservationGroups :return: An iterator like instance of either CapacityReservationGroup or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservationGroup] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservationGroup] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationGroupListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -24921,7 +25943,7 @@ class CapacityReservationsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`capacity_reservations` attribute. """ @@ -24954,7 +25976,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25025,14 +26047,14 @@ def begin_create_or_update( :param capacity_reservation_name: The name of the capacity reservation. Required. :type capacity_reservation_name: str :param parameters: Parameters supplied to the Create capacity reservation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25065,7 +26087,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25090,17 +26112,17 @@ def begin_create_or_update( :type capacity_reservation_name: str :param parameters: Parameters supplied to the Create capacity reservation. Is either a CapacityReservation type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation or IO[bytes] :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25164,7 +26186,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25233,14 +26255,14 @@ def begin_update( :param capacity_reservation_name: The name of the capacity reservation. Required. :type capacity_reservation_name: str :param parameters: Parameters supplied to the Update capacity reservation operation. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUpdate + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25271,7 +26293,7 @@ def begin_update( :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25294,17 +26316,17 @@ def begin_update( :type capacity_reservation_name: str :param parameters: Parameters supplied to the Update capacity reservation operation. Is either a CapacityReservationUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationUpdate or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationUpdate or IO[bytes] :return: An instance of LROPoller that returns either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25367,7 +26389,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_capacity_reservations_delete_request( @@ -25429,7 +26451,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -25489,9 +26511,9 @@ def get( snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. "instanceView" Default value is None. :paramtype expand: str or - ~azure.mgmt.compute.v2024_07_01.models.CapacityReservationInstanceViewTypes + ~azure.mgmt.compute.v2024_11_01.models.CapacityReservationInstanceViewTypes :return: CapacityReservation or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.CapacityReservation + :rtype: ~azure.mgmt.compute.v2024_11_01.models.CapacityReservation :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -25505,7 +26527,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservation] = kwargs.pop("cls", None) _request = build_capacity_reservations_get_request( @@ -25551,13 +26573,13 @@ def list_by_capacity_reservation_group( :type capacity_reservation_group_name: str :return: An iterator like instance of either CapacityReservation or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.CapacityReservation] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.CapacityReservation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.CapacityReservationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -25629,7 +26651,7 @@ class LogAnalyticsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`log_analytics` attribute. """ @@ -25657,7 +26679,7 @@ def _export_request_rate_by_interval_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25720,14 +26742,14 @@ def begin_export_request_rate_by_interval( :type location: str :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RequestRateByIntervalInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RequestRateByIntervalInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25749,7 +26771,7 @@ def begin_export_request_rate_by_interval( :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25764,18 +26786,18 @@ def begin_export_request_rate_by_interval( :type location: str :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. Is either a RequestRateByIntervalInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.RequestRateByIntervalInput or + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.RequestRateByIntervalInput or IO[bytes] :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -25834,7 +26856,7 @@ def _export_throttled_requests_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -25896,14 +26918,14 @@ def begin_export_throttled_requests( :param location: The location upon which virtual-machine-sizes is queried. Required. :type location: str :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ThrottledRequestsInput + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ThrottledRequestsInput :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25924,7 +26946,7 @@ def begin_export_throttled_requests( :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -25939,17 +26961,17 @@ def begin_export_throttled_requests( :type location: str :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. Is either a ThrottledRequestsInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.compute.v2024_07_01.models.ThrottledRequestsInput or IO[bytes] + :type parameters: ~azure.mgmt.compute.v2024_11_01.models.ThrottledRequestsInput or IO[bytes] :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.LogAnalyticsOperationResult] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.LogAnalyticsOperationResult] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LogAnalyticsOperationResult] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -26001,7 +27023,7 @@ class VirtualMachineRunCommandsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_run_commands` attribute. """ @@ -26024,13 +27046,13 @@ def list(self, location: str, **kwargs: Any) -> Iterable["_models.RunCommandDocu :return: An iterator like instance of either RunCommandDocumentBase or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.RunCommandDocumentBase] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.RunCommandDocumentBase] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RunCommandListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26103,7 +27125,7 @@ def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunComma :param command_id: The command id. Required. :type command_id: str :return: RunCommandDocument or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.RunCommandDocument + :rtype: ~azure.mgmt.compute.v2024_11_01.models.RunCommandDocument :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -26117,7 +27139,7 @@ def get(self, location: str, command_id: str, **kwargs: Any) -> _models.RunComma _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.RunCommandDocument] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_request( @@ -26167,7 +27189,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -26238,14 +27260,14 @@ def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -26278,7 +27300,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -26302,17 +27324,17 @@ def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand or IO[bytes] + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -26376,7 +27398,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -26447,14 +27469,14 @@ def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -26487,7 +27509,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -26511,18 +27533,18 @@ def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate or + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -26581,7 +27603,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_delete_request( @@ -26638,7 +27660,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -26697,7 +27719,7 @@ def get_by_virtual_machine( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineRunCommand or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -26711,7 +27733,7 @@ def get_by_virtual_machine( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_run_commands_get_by_virtual_machine_request( @@ -26759,13 +27781,13 @@ def list_by_virtual_machine( :return: An iterator like instance of either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommandsListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -26838,7 +27860,7 @@ class VirtualMachineScaleSetVMRunCommandsOperations: # pylint: disable=name-too **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.compute.v2024_07_01.ComputeManagementClient`'s + :class:`~azure.mgmt.compute.v2024_11_01.ComputeManagementClient`'s :attr:`virtual_machine_scale_set_vm_run_commands` attribute. """ @@ -26872,7 +27894,7 @@ def _create_or_update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -26946,14 +27968,14 @@ def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -26988,7 +28010,7 @@ def begin_create_or_update( :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27014,17 +28036,17 @@ def begin_create_or_update( :type run_command_name: str :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommand type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand or IO[bytes] + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -27090,7 +28112,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -27164,14 +28186,14 @@ def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27206,7 +28228,7 @@ def begin_update( :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -27232,18 +28254,18 @@ def begin_update( :type run_command_name: str :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. Is either a VirtualMachineRunCommandUpdate type or a IO[bytes] type. Required. - :type run_command: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommandUpdate or + :type run_command: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommandUpdate or IO[bytes] :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -27303,7 +28325,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_run_commands_delete_request( @@ -27362,7 +28384,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -27425,7 +28447,7 @@ def get( :keyword expand: The expand expression to apply on the operation. Default value is None. :paramtype expand: str :return: VirtualMachineRunCommand or the result of cls(response) - :rtype: ~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand + :rtype: ~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -27439,7 +28461,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommand] = kwargs.pop("cls", None) _request = build_virtual_machine_scale_set_vm_run_commands_get_request( @@ -27496,13 +28518,13 @@ def list( :return: An iterator like instance of either VirtualMachineRunCommand or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_07_01.models.VirtualMachineRunCommand] + ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2024_11_01.models.VirtualMachineRunCommand] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-07-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-11-01")) cls: ClsType[_models.VirtualMachineRunCommandsListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/_patch.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/_patch.py similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/operations/_patch.py rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/operations/_patch.py diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/py.typed b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/py.typed similarity index 100% rename from sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_07_01/py.typed rename to sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_01/py.typed diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_04/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_04/_version.py index cad0623e3cd5..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_04/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_11_04/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "34.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_cancel_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_cancel_migration_to_virtual_machine_scale_set.py new file mode 100644 index 000000000000..c4b6294bdcc6 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_cancel_migration_to_virtual_machine_scale_set.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python availability_set_cancel_migration_to_virtual_machine_scale_set.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + client.availability_sets.cancel_migration_to_virtual_machine_scale_set( + resource_group_name="rgcompute", + availability_set_name="myAvailabilitySet", + ) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_CancelMigrationToVirtualMachineScaleSet.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_convert_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_convert_to_virtual_machine_scale_set.py new file mode 100644 index 000000000000..b153dd56ef24 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_convert_to_virtual_machine_scale_set.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python availability_set_convert_to_virtual_machine_scale_set.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + client.availability_sets.begin_convert_to_virtual_machine_scale_set( + resource_group_name="rgcompute", + availability_set_name="myAvailabilitySet", + ).result() + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_ConvertToVirtualMachineScaleSet.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create.py index 72a85899d3f5..d8cddc806e9c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Create.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create_with_scheduled_event_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create_with_scheduled_event_profile.py index c514af34b7c2..107562b099a8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create_with_scheduled_event_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_create_with_scheduled_event_profile.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_maximum_set_gen.py index 14b7eca1a848..4de69ead34ec 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_minimum_set_gen.py index 60e51365acf5..b744ed34f00f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_maximum_set_gen.py index 40ecd3c7ca82..0368fd9e4898 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_minimum_set_gen.py index 05881ca02c85..cf555a5be3eb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_get_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_maximum_set_gen.py index 9c2eea13644b..9caccf0c4df2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_minimum_set_gen.py index dd6ba00ef45b..3622658323a2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_available_sizes_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_by_subscription.py index 54aef2e68bcd..054533c08d18 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_maximum_set_gen.py index 03134ad8cf8e..347967a3e7ef 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_minimum_set_gen.py index 70bfd217d860..f32bd94f6863 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_start_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_start_migration_to_virtual_machine_scale_set.py new file mode 100644 index 000000000000..66ec55f893ec --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_start_migration_to_virtual_machine_scale_set.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python availability_set_start_migration_to_virtual_machine_scale_set.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + client.availability_sets.start_migration_to_virtual_machine_scale_set( + resource_group_name="rgcompute", + availability_set_name="myAvailabilitySet", + parameters={ + "virtualMachineScaleSetFlexible": { + "id": "/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + ) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_StartMigrationToVirtualMachineScaleSet.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_update_maximum_set_gen.py index 66af5f21671c..b5e21f90f144 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_update_maximum_set_gen.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_validate_migration_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_validate_migration_to_virtual_machine_scale_set.py new file mode 100644 index 000000000000..119b0c896568 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/availability_set_examples/availability_set_validate_migration_to_virtual_machine_scale_set.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python availability_set_validate_migration_to_virtual_machine_scale_set.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + client.availability_sets.validate_migration_to_virtual_machine_scale_set( + resource_group_name="rgcompute", + availability_set_name="myAvailabilitySet", + parameters={ + "virtualMachineScaleSetFlexible": { + "id": "/subscriptions/{subscription-id}/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + ) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/availabilitySetExamples/AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_create_or_update.py index 915e4351f6d5..8b84586c1a05 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_create_or_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_maximum_set_gen.py index e7fdd90909cf..9181daba8ced 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_minimum_set_gen.py index 3b6e80b202db..34d37485319a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_get.py index a7f1529f4d60..da95500d5d9c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_create_or_update.py index 8f19b53bb0a1..ca906bcf8668 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_create_or_update.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_maximum_set_gen.py index 0148401a03a9..5df72f9cf22a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_minimum_set_gen.py index 99c18f7cf789..42730a7d80fb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_get.py index 8d534bf0bf55..f6768370d820 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_resource_group.py index b1be2ac8d0c5..ec89c4dec63d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription.py index a4c6aa19c205..a8b5c1cc4c08 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py index 9bb1750a3565..907060c897fe 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_list_by_subscription_with_resource_ids_query.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_update_maximum_set_gen.py index bc4e5bf87ed5..d8a6480e75d0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_group_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_list_by_reservation_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_list_by_reservation_group.py index 08a2c0a6dbd8..1abb1318997b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_list_by_reservation_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_list_by_reservation_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_update_maximum_set_gen.py index 8cd4dab1a7a9..6c1efa4c43a6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/capacity_reservation_examples/capacity_reservation_update_maximum_set_gen.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_maximum_set_gen.py index c713c9df8ab7..0b5a873c77af 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_minimum_set_gen.py index 621d43d2370f..8275dd46c9cb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/operations_list_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_maximum_set_gen.py index fbc3ff5d9d4e..04ebd0d23921 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_minimum_set_gen.py index 5dd15bb034ac..845c4e4989a2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/usage_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_maximum_set_gen.py index 39199e40d9a6..f7a554a5b674 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_minimum_set_gen.py index 0d2b4a0f0845..2652cd5afee1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/compute_rp_common_examples/virtual_machine_sizes_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_create_or_update.py index ae9d79a3a9bd..0cdf4103dd82 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_create_or_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_maximum_set_gen.py index 7c484a24b2cd..f4a831167e04 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_minimum_set_gen.py index 1b8615c109cc..b62ff4e4e5d2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_get.py index 649eef75b419..3e0920139cab 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update.py index 345c26be1df0..4b4fd71c7f67 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update_with_ultra_ssd.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update_with_ultra_ssd.py index 948a04e0c3d5..541c1350677e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update_with_ultra_ssd.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_create_or_update_with_ultra_ssd.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_maximum_set_gen.py index 196b40749b7e..8664137669c5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_minimum_set_gen.py index f37fbb97e9c2..f7d39910121f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get.py index 6497d970ce59..448dcf5ad34f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py index aa2e0bb4ba5e..4ba4d9943ae2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_get_ultra_ssd_enabled_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py index f0e9e3a264e1..f07bbedaf140 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py index e747731ddb29..6376762f59f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_resource_group_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_maximum_set_gen.py index 909a37687874..ffd65ca6fba0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_minimum_set_gen.py index 4f4ce2cdfb08..4f4a828b3100 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_list_by_subscription_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_update_maximum_set_gen.py index bce743848ea2..5af28d12da78 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_group_update_maximum_set_gen.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_available_sizes.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_available_sizes.py index 81482c951fb7..06a3e7ec5f0e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_available_sizes.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_available_sizes.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_maximum_set_gen.py index 4ddebbfe57b3..2ea660fff4cd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_minimum_set_gen.py index e21440d6ff4d..5ef4044cb671 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_list_by_host_group_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_redeploy.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_redeploy.py index c16d1854d7bc..3c569eb8bd70 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_redeploy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_redeploy.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Redeploy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Redeploy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_restart.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_restart.py index 5451e718c92e..468481ff9329 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_restart.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_restart.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Restart.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_maximum_set_gen.py index 5382622ea4d0..7c399b28cffb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_maximum_set_gen.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_resize.py b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_resize.py index a28e387a0117..b7bfd49df62a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_resize.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/dedicated_host_examples/dedicated_host_update_resize.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/dedicatedHostExamples/DedicatedHost_Update_Resize.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/dedicatedHostExamples/DedicatedHost_Update_Resize.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_ablob_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_ablob_included.py index cf90d53198b3..0b741046991a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_ablob_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_ablob_included.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_Create_DataDiskFromABlobIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_amanaged_disk_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_amanaged_disk_included.py index eeba1fef83da..d95b6f8638e7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_amanaged_disk_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_amanaged_disk_included.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_asnapshot_included.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_asnapshot_included.py index ad6b56284a50..8feb94b998f5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_asnapshot_included.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_data_disk_from_asnapshot_included.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob.py index 1d821e161f20..91976250796c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromABlob.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromABlob.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob_with_disk_encryption_set.py index 831b7528fa66..f9c117bbbbc6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_ablob_with_disk_encryption_set.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk.py index 18eb18ebab12..1d52ae98a033 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromAManagedDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromAManagedDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk_with_disk_encryption_set.py index ba1590096e2a..3864a874af0b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_amanaged_disk_with_disk_encryption_set.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot.py index 55b516e97b7b..c04b733228ec 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromASnapshot.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromASnapshot.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot_with_disk_encryption_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot_with_disk_encryption_set.py index 2e261dbe940f..bf22c4aed38b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot_with_disk_encryption_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_asnapshot_with_disk_encryption_set.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_avm.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_avm.py index 43b53e1dc856..d55c234dbc47 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_avm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_create_from_avm.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_CreateFromAVM.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_CreateFromAVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_get.py index 7d6922022bb5..014d3d5c768d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_resource_group.py index 17aae6ed69dc..1b90da45f857 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_ListByResourceGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_subscription.py index 36ccaeae1fff..8d525e3bf054 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_ListBySubscription.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_update.py index 83d39ed6cc7e..9d9c3ae7f3fb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/image_update.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Image_Update.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Image_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_maximum_set_gen.py index 4bfa9e2af140..057d4ec8cbf4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_minimum_set_gen.py index 067ddbc86292..8ccc2ab64b6f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/image_examples/images_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/imageExamples/Images_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_request_rate_by_interval.py b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_request_rate_by_interval.py index e9abef5fcb1f..3cf7ca800576 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_request_rate_by_interval.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_request_rate_by_interval.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_throttled_requests.py b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_throttled_requests.py index 74a470f6d57b..9bc4526217e3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_throttled_requests.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/log_analytic_examples/log_analytics_throttled_requests.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/logAnalyticExamples/LogAnalytics_ThrottledRequests.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_create_or_update.py index b0ecdae5eaae..f2f5b9d6b742 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_create_or_update.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_delete.py index 214ab499c30c..8e57485780a3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_get.py index 9903fe0c41fb..4dd5042a7aff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_resource_group.py index e16dfe4fdb27..b7f38760540f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_subscription.py index a5626011d5a3..8d172f7d92bb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_patch.py b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_patch.py index e6af5617d54a..f7920db7ca7e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_patch.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/proximity_placement_group_examples/proximity_placement_group_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update.py index 9af6ac3f1ea0..1e586ccf7a7c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update_for_cross_region_copy.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update_for_cross_region_copy.py index 48050053b9af..3947b550194d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update_for_cross_region_copy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_create_or_update_for_cross_region_copy.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_maximum_set_gen.py index a95effb4f257..983b04b30f6c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_minimum_set_gen.py index 45a18ed4fdc0..6b2bd19840d5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get.py index 277760ae6d60..e85015cad830 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get_with_contained_restore_points.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get_with_contained_restore_points.py index cb2651566b7c..66daad95a5d7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get_with_contained_restore_points.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_get_with_contained_restore_points.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_resource_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_resource_group.py index d1fead79a85b..396298affa4c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_resource_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_subscription.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_subscription.py index ec3969ac6b6e..a92212b6d34f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_subscription.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_update_maximum_set_gen.py index 6e80fb0d2463..a112a084fbc4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_collection_update_maximum_set_gen.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_copy_between_regions.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_copy_between_regions.py index 0c003388a1f9..bcdddd8de00c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_copy_between_regions.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_copy_between_regions.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_create.py index 2d51e2b7a61b..23428515713c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_create.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Create.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_maximum_set_gen.py index f35426586418..a6edf691ac9c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_minimum_set_gen.py index 1304557a720d..c50ee5cf95eb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get.py index 22e9a96a0683..ddaa1de6efa2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get_with_instance_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get_with_instance_view.py index bc4f91683539..45c1661c492e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get_with_instance_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/restore_point_examples/restore_point_get_with_instance_view.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/restorePointExamples/RestorePoint_Get_WithInstanceView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_get.py index 69daf2242748..5a980711efe9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/RunCommand_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/RunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_list.py index 86d44bd964d1..e7ca0fe3e54a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/run_command_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/RunCommand_List.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/RunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command.py index bef67181c2e3..e617a3cff77e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_create_or_update.py index c252a0820046..54f68fa989ab 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_create_or_update.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_delete.py index b951efdfc9b8..498a92a54696 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_get.py index ec492bcba542..62f75f477560 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_list.py index adfa7c7f8fe3..5e1f5035d3b2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_update.py index 7ef579b69773..57b1efe4f6e5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_run_command_update.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineRunCommand_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command.py index 0726f74ca05f..621e826e092d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_create_or_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_create_or_update.py index e12a17861fc0..98a09d840ce5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_create_or_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_create_or_update.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_delete.py index 264e57aade5c..2b007e4dd4f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_get.py index 2930523ff059..cff858005bd9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_list.py index 092e137fb057..40b39012eb01 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_update.py index 781760136e53..1ad30e25a1d8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/run_command_examples/virtual_machine_scale_set_vm_run_command_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_create.py index 63f9b60a6d41..14e9d8fbc6c0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_create.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_maximum_set_gen.py index a4fe9e7330d8..398ae7253f31 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_minimum_set_gen.py index 4f1c0008ce19..a87da83fa1c5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_delete_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair.py index 6bf728d6f7d8..c1f10e16fe61 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py index d2588eb099c5..a9a0f622fba5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_ed25519.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_rsa.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_rsa.py index c6711d7a5c4c..5758b6616631 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_rsa.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_generate_key_pair_encryption_with_rsa.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_get.py index 3a2d81c3d543..a13689019dee 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_maximum_set_gen.py index 2f94e4aa8c55..4de87311e667 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_minimum_set_gen.py index dcc94109cb69..a2e71bfe322f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_resource_group_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_maximum_set_gen.py index f180a59487db..f926a0f31e66 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_minimum_set_gen.py index 65b911585212..4819f56d21e4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_list_by_subscription_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_update_maximum_set_gen.py index 5b603ddc5892..e034b5e3faa5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/ssh_public_key_examples/ssh_public_key_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_assess_patches.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_assess_patches.py index 287a714b092e..f2e8248f6e24 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_assess_patches.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_assess_patches.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_AssessPatches.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py index e825a3b5aec3..6b24406fdaef 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_maximum_set_gen.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py index 0585407dd2fd..806f727dcf2b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_attach_detach_data_disks_minimum_set_gen.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_maximum_set_gen.py index c3278f0f3d68..189e36f6bc94 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_minimum_set_gen.py index 2d6b826f8c9e..bb1dc39a096d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_capture_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py index 09a95ca2521b..14c24c8455df 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py index d4b0eac96879..ce371014e6dc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_convert_to_managed_disks_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py index 40da2b3d8821..74e3f318c1f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_custom_image_vm_from_an_unmanaged_generalized_os_image.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acommunity_gallery_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acommunity_gallery_image.py index 8ccdbcca2aa6..87c6a3ff2d11 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acommunity_gallery_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acommunity_gallery_image.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acustom_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acustom_image.py index 93d7f03158bd..0f98e7517a85 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acustom_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_acustom_image.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ageneralized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ageneralized_shared_image.py index 7ccc94140edf..1c7545f43120 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ageneralized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ageneralized_shared_image.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ashared_gallery_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ashared_gallery_image.py index d01d42e1cac7..ee321af77660 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ashared_gallery_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_ashared_gallery_image.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_aspecialized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_aspecialized_shared_image.py index 94d04bcd13cd..07757f0f0722 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_aspecialized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_from_aspecialized_shared_image.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_an_availability_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_an_availability_set.py index 16e164acff5d..06b49d3f203f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_an_availability_set.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_an_availability_set.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py index 583ca775cdd6..bfe278b1d3ae 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_in_avmss_with_customer_assigned_platform_fault_domain.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py index 43d816eb3718..66cef70edf54 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_automatic_by_platform_settings.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py index b8203f056a8f..4cffbe9543db 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_assessment_mode_of_image_default.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py index ad090a7f115b..3559331fedcb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_mode_of_image_default.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py index b78888020663..445a2b095dfd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_linux_vm_with_patch_setting_modes_of_automatic_by_platform.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py index ca452b8c4453..ef192f2cfb2a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_platform_image_vm_with_unmanaged_os_and_data_disks.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py index 6567f7490d64..4eae0afbec9c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_automatic_by_platform_settings.py @@ -82,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py index 3767860eab8b..02d7838458a9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_assessment_mode_of_image_default.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py index 5de4d51d023e..6e70c2c39c47 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_os.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py index 5cfb05dd056b..d4977ab8df4e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_automatic_by_platform_and_enable_hot_patching_true.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py index e5728e4bd931..5b761afc4506 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_mode_of_manual.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py index 0deb21ece28f..e96213c3aacb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_windows_vm_with_patch_setting_modes_of_automatic_by_platform.py @@ -75,6 +75,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk.py index e170c658dc62..cf6dcad02048 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py index 4774889aa3d2..b89e073f4501 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_cache_disk.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py index e313d7180667..ecbfa90b8b6f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_nvme_disk.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py index 0219a3bce01f..4a8edb525a9d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_adiff_os_disk_using_diff_disk_placement_as_resource_disk.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_amarketplace_image_plan.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_amarketplace_image_plan.py index 8a01973ae774..f4f827db6524 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_amarketplace_image_plan.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_amarketplace_image_plan.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_application_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_application_profile.py index 1ceb50ee2a84..24c940dcbad7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_application_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_application_profile.py @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_boot_diagnostics.py index 9af0442ccf29..6e21375b557e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_boot_diagnostics.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_capacity_reservation.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_capacity_reservation.py index 1772f7ecffa1..6ba95e5bab9f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_capacity_reservation.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_capacity_reservation.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_data_disks_from_source_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_data_disks_from_source_resource.py index f7e334a1faf9..964a799b2edc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_data_disks_from_source_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_data_disks_from_source_resource.py @@ -96,6 +96,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_controller_type.py index 97cda70444bf..8dfc649e15e8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_controller_type.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_encryption_set_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_encryption_set_resource.py index 3f3bafc16727..8429c1162a81 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_encryption_set_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_disk_encryption_set_resource.py @@ -99,6 +99,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_empty_data_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_empty_data_disks.py index ddc36356a51e..5df6c8fa6805 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_empty_data_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_empty_data_disks.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_at_host.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_at_host.py index 377514e280f1..414816298c91 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_at_host.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_at_host.py @@ -72,6 +72,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_identity.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_identity.py index 8c5d65028c1d..77afe244a80f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_identity.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_encryption_identity.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_extensions_time_budget.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_extensions_time_budget.py index fc0373a23914..5e4b605c5df5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_extensions_time_budget.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_extensions_time_budget.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_hibernation_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_hibernation_enabled.py index 6008cdd8facd..d8b4205b9960 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_hibernation_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_hibernation_enabled.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_managed_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_managed_boot_diagnostics.py index 1baf9f3b6029..9ce8ab3950a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_managed_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_managed_boot_diagnostics.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration.py index 76d697ed7531..f1925033ef7e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration_dns_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration_dns_settings.py index a9ee6626ee1a..675f6e60f872 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration_dns_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_network_interface_configuration_dns_settings.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_password_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_password_authentication.py index 16864de0bb9e..733ae578a919 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_password_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_password_authentication.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_placement.py new file mode 100644 index 000000000000..70a089e9d31f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_placement.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_create_with_placement.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machines.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_name="myVM", + parameters={ + "location": "westus2", + "placement": {"includeZones": ["1", "3"], "zonePlacementPolicy": "Any"}, + "plan": {"name": "windows2016", "product": "windows-data-science-vm", "publisher": "microsoft-ads"}, + "properties": { + "hardwareProfile": {"vmSize": "Standard_DS1_v2"}, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": {"primary": True}, + } + ] + }, + "osProfile": { + "adminPassword": "{your-password}", + "adminUsername": "{your-username}", + "computerName": "myVM", + }, + "storageProfile": { + "imageReference": { + "offer": "windows-data-science-vm", + "publisher": "microsoft-ads", + "sku": "windows2016", + "version": "latest", + }, + "osDisk": { + "caching": "ReadOnly", + "createOption": "FromImage", + "managedDisk": {"storageAccountType": "Standard_LRS"}, + "name": "myVMosdisk", + }, + }, + }, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_premium_storage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_premium_storage.py index fb1b43cfdbf5..4e0a660082b2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_premium_storage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_premium_storage.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_proxy_agent_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_proxy_agent_settings.py index e10f65df9f90..3dfc933c3193 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_proxy_agent_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_proxy_agent_settings.py @@ -50,7 +50,7 @@ def main(): "adminUsername": "{your-username}", "computerName": "myVM", }, - "securityProfile": {"proxyAgentSettings": {"enabled": True, "mode": "Enforce"}}, + "securityProfile": {"proxyAgentSettings": {"enabled": True}}, "storageProfile": { "imageReference": { "offer": "WindowsServer", @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_scheduled_events_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_scheduled_events_profile.py index 88037e196196..3a38d448440a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_scheduled_events_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_scheduled_events_profile.py @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm.py index 005171a0d14c..4793eb7ce762 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py index f2bcb558a6bb..eed3da5db370 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_customer_managed_keys.py @@ -82,6 +82,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py index 79f5a938b580..2a670618b9cd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_security_type_confidential_vm_with_non_persisted_tpm.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_ssh_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_ssh_authentication.py index 89a5d6303a1a..8d8356de4cbf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_ssh_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_ssh_authentication.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_uefi_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_uefi_settings.py index c5e231c09871..317470b1ddb3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_uefi_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_uefi_settings.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_user_data.py index b94ad0593cec..4f25d9c046a2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_user_data.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_vm_size_properties.py index 91da252d79e8..e17f914433cf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_create_with_vm_size_properties.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_maximum_set_gen.py index 87b64f833af7..0aa916b7068b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_minimum_set_gen.py index c66d624c32b2..a717499cb329 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_deallocate_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_delete_force.py index eb312b74c9bc..6cc1a8ac8133 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_delete_force.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_maximum_set_gen.py index abf595c5c0af..0977b3849430 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_maximum_set_gen.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_minimum_set_gen.py index c98c7ae61dad..3aabcdadbe70 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_create_or_update_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_maximum_set_gen.py index 396e8909c372..a5bf0502f81d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_minimum_set_gen.py index b20173cfda90..9c9ae37241cf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_maximum_set_gen.py index 53904f2299aa..46cb7a594ebe 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_minimum_set_gen.py index 498aef9f6dc7..defa371928d5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_get_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_maximum_set_gen.py index 5aa04cd180a1..82f27deb8228 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_minimum_set_gen.py index c33d3771636e..6ce9c2da04f6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_update.py index 36915b40ce32..8aa2594af0a0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_extension_update.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachineExtension_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_generalize.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_generalize.py index e8df4d2d0580..65368aaf50bb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_generalize.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_generalize.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Generalize.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get.py index 71bc0838b40c..e06e8202ea5f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_auto_placed_on_dedicated_host_group.py index adcddb4135a0..3db7ad1479d5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_auto_placed_on_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view.py index 1d54b54347b6..b0deed272e71 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceView.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py index 76dfada17616..5464c1d0cefc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_instance_view_auto_placed_on_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_disk_controller_type.py index bd2e2f4b3b9c..8d5dfea8b206 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_disk_controller_type.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_vm_size_properties.py index 21fb9a108db1..c9be8608e456 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_get_with_vm_size_properties.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_install_patches.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_install_patches.py index 10eed81ac9fc..9c81441387ba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_install_patches.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_install_patches.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_InstallPatches.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_maximum_set_gen.py index 823fe4ae581e..30b5aa9ee9f4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_minimum_set_gen.py index fbdba9d147fe..3fa944e5e48e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_all_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_available_vm_sizes.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_available_vm_sizes.py index 4348ca777051..4867e1a393f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_available_vm_sizes.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_available_vm_sizes.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_by_subscription_by_location.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_by_subscription_by_location.py index 9b12f362f7c1..1e5168a3d0d6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_by_subscription_by_location.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_by_subscription_by_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_maximum_set_gen.py index 46520a992582..3777a5a7d7ca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_minimum_set_gen.py index f453488eaa2c..c9975ba5cea6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_migrate_to_virtual_machine_scale_set.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_migrate_to_virtual_machine_scale_set.py new file mode 100644 index 000000000000..718f26411825 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_migrate_to_virtual_machine_scale_set.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_migrate_to_virtual_machine_scale_set.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + client.virtual_machines.begin_migrate_to_vm_scale_set( + resource_group_name="myResourceGroup", + vm_name="myVMName", + ).result() + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_maximum_set_gen.py index 1f223883525f..324f7ec9c942 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_minimum_set_gen.py index b2db2a9b4de4..52d75e8375ff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_perform_maintenance_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_maximum_set_gen.py index 2f65b26fbfd4..7e24a20d980b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_minimum_set_gen.py index bd57227152ab..5d2beaaffa73 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_power_off_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reapply.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reapply.py index b1212adaeb55..28721814cb4d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reapply.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reapply.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Reapply.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_maximum_set_gen.py index 78acc2eebf91..88407bad600c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_minimum_set_gen.py index a7ec192df05b..3c57b18a6c8b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_redeploy_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage.py index 6dcc940dbc22..044157d335f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage_non_ephemeral_vms.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage_non_ephemeral_vms.py index 4cdc4e5f0574..347f695237bb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage_non_ephemeral_vms.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_reimage_non_ephemeral_vms.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_maximum_set_gen.py index 310cbfe07c27..475ae95a72d7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_minimum_set_gen.py index b6deee95ba73..1a1a8f899086 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_restart_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_retrieve_boot_diagnostics_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_retrieve_boot_diagnostics_data.py index 9de1746914be..fadd36242d6a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_retrieve_boot_diagnostics_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_retrieve_boot_diagnostics_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_simulate_eviction.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_simulate_eviction.py index 83739ae03628..e235aac872df 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_simulate_eviction.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_simulate_eviction.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_SimulateEviction.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_maximum_set_gen.py index e8b45da6c424..c25a1d695b57 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_minimum_set_gen.py index 48bc68190b27..1e115ae41d2e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_start_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py index 9ace93e5e524..f0d35fb9822f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_detach_data_disk_using_to_be_detached_property.py @@ -73,6 +73,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_force_detach_data_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_force_detach_data_disk.py index e1fb1744ee5c..5b4846b47d27 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_force_detach_data_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_examples/virtual_machine_update_force_detach_data_disk.py @@ -79,6 +79,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_maximum_set_gen.py index d813f9792d6b..105347015c55 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_minimum_set_gen.py index d33038e53ef5..6db5a7aa8bb5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_get_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_maximum_set_gen.py index f16b263b935c..b18abf410d44 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_minimum_set_gen.py index 506be987896f..071518b300ae 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_types_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_maximum_set_gen.py index 4ec96ae7a8ec..8672c86d23b6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_minimum_set_gen.py index dd8bbffd1dfa..77931c30c802 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_extension_image_examples/virtual_machine_extension_image_list_versions_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_maximum_set_gen.py index 6388c93168bd..bc5079d623f9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_minimum_set_gen.py index 1edd2e1921d2..3f70f579b638 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_get_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_maximum_set_gen.py index af019c54a052..a534071228bc 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_minimum_set_gen.py index 72b68098a130..053e6eebc6d1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_maximum_set_gen.py index 9913f6c13301..cd827439d6fd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_minimum_set_gen.py index 5fc78b949c2e..f8cb538ac1bf 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_offers_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_maximum_set_gen.py index d259250c1e93..def06b4f5ce3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_minimum_set_gen.py index 3a8d719dbccd..1f61a3f03399 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_publishers_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_maximum_set_gen.py index 95ff3936641c..0def4604737b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_minimum_set_gen.py index b5d5c51595ef..f2ef3db07ba5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_image_list_skus_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_maximum_set_gen.py index 83a2e4f55c16..6772062f579f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_maximum_set_gen.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_minimum_set_gen.py index 2482bb8c2b76..677b80c867e6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_get_minimum_set_gen.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py index e784e2ca0825..72fa5d15aa00 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py index e69f7d56bb2c..3be3186d1d53 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_by_edge_zone_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_maximum_set_gen.py index 0bffb75a84ce..9ca82831274c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_maximum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_minimum_set_gen.py index 2d5b82dd72b8..cbc71c459563 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_minimum_set_gen.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py index d4ca3c84531c..46a5ebc543e2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py index 03719c7d1902..6df669dace09 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_offers_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py index a549b01fe7a7..4e2bac5178fb 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py index 45fb1ee575c8..92926d1f877f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_publishers_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py index 85dca1fec9a2..70d4822c4ea0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py index 11542f6b2222..c4a9d823ff14 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_edge_zone_list_skus_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_maximum_set_gen.py new file mode 100644 index 000000000000..2d4fc45cdfc3 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_maximum_set_gen.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_images_list_with_properties_maximum_set_gen.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_images.list_with_properties( + location="eastus", + publisher_name="MicrosoftWindowsServer", + offer="WindowsServer", + skus="2022-datacenter-azure-edition", + expand="Properties", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_minimum_set_gen.py new file mode 100644 index 000000000000..fcd10aba20ca --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_image_examples/virtual_machine_images_list_with_properties_minimum_set_gen.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_images_list_with_properties_minimum_set_gen.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_images.list_with_properties( + location="eastus", + publisher_name="MicrosoftWindowsServer", + offer="WindowsServer", + skus="2022-datacenter-azure-edition", + expand="Properties", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_approve_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_approve_rolling_upgrade.py index 12078a086fa7..958bf4bef9b0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_approve_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_approve_rolling_upgrade.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py index 5402bd5051c1..daa5835e9003 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_convert_to_single_placement_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py index 0eba98d60014..d73303abfb54 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py index f6be0c20ffb8..3e12dc5f91be 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_a_with_diff_os_disk_using_diff_disk_placement_as_nvme_disk.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py index fe87a105bc8b..0e3ba73e090a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_custom_image_from_an_unmanaged_generalized_os_image.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_acustom_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_acustom_image.py index c636f2a4d536..89aeee63a45f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_acustom_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_acustom_image.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py index 5e9bf0458c94..470706bfae43 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_ageneralized_shared_image.py @@ -83,6 +83,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py index 6b05f3c60c87..36b760cb4477 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_aspecialized_shared_image.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py index 787787e7c55e..f67e48915eec 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_disable_tcp_state_tracking_network_interface.py @@ -106,6 +106,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py index fdefd200e264..8c4319c1ee30 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_fpga_network_interface.py @@ -104,6 +104,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py index 4c9325cecd19..acc65e6ce2d5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_from_with_network_interface_with_dns_settings.py @@ -118,6 +118,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py index 0263b3c8ebaa..d0cbc95e1248 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_platform_image_with_unmanaged_os_disks.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py index 66b46f15ad9a..f6383666bdc8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_amarketplace_image_plan.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_application_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_application_profile.py index da88dc8a7480..557d8897c9a6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_application_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_application_profile.py @@ -101,6 +101,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_repairs.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_repairs.py index 9d9f7dbc146a..5e3262ecb4f2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_repairs.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_repairs.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py new file mode 100644 index 000000000000..891cee6d124a --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_create_with_automatic_zone_rebalancing_policy.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_scale_sets.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_scale_set_name="{vmss-name}", + parameters={ + "location": "westus", + "properties": { + "overprovision": False, + "resiliencyPolicy": { + "automaticZoneRebalancingPolicy": { + "enabled": True, + "rebalanceBehavior": "CreateBeforeDelete", + "rebalanceStrategy": "Recreate", + } + }, + "upgradePolicy": {"mode": "Manual"}, + "virtualMachineProfile": { + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "enableIPForwarding": True, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + }, + } + ], + "primary": True, + }, + } + ] + }, + "osProfile": { + "adminPassword": "{your-password}", + "adminUsername": "{your-username}", + "computerNamePrefix": "{vmss-name}", + }, + "storageProfile": { + "imageReference": { + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2016-Datacenter", + "version": "latest", + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "managedDisk": {"storageAccountType": "Standard_LRS"}, + }, + }, + }, + }, + "sku": {"capacity": 3, "name": "Standard_D1_v2", "tier": "Standard"}, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_application_gateway.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_application_gateway.py index af2ab27571e5..7666b3dcd6a4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_application_gateway.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_application_gateway.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_load_balancer.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_load_balancer.py index 1db5629b255a..e1246caa6973 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_load_balancer.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_azure_load_balancer.py @@ -100,6 +100,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_boot_diagnostics.py index 5c71b07ec385..d4b3b92208d1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_boot_diagnostics.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_capacity_reservation.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_capacity_reservation.py index 08b55f5872e8..4b84a6de44af 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_capacity_reservation.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_capacity_reservation.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_diff_os_disk.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_diff_os_disk.py index ec6be793e071..8556ca977376 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_diff_os_disk.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_diff_os_disk.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_controller_type.py index a92c24cae81c..c3c792474cca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_controller_type.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py index d43ad3c1fe11..0cbd95f9b076 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_disk_encryption_set_resource.py @@ -102,6 +102,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py index 87e88bce902d..9e30fe7b9516 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_empty_data_disks_on_each_vm.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_encryption_at_host.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_encryption_at_host.py index 2fd251b25748..5faa1ff1c324 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_encryption_at_host.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_encryption_at_host.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py index cee93e0e4108..832ffe13c2ff 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_suppress_failures_enabled.py @@ -107,6 +107,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_time_budget.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_time_budget.py index c5411df92413..ca42aeed6312 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_time_budget.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_extensions_time_budget.py @@ -107,6 +107,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py index ef6862249b47..c05e4a50a1a9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_managed_boot_diagnostics.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py index ac00930b72e2..0b231be0301c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_os_image_scheduled_event_enabled.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_password_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_password_authentication.py index db7230c291e1..817d429b1989 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_password_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_password_authentication.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_premium_storage.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_premium_storage.py index 3c0279682e38..ed5871dd9100 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_premium_storage.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_premium_storage.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_priority_mix_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_priority_mix_policy.py index 633bcb4c7bb4..2dd4509eb0a2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_priority_mix_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_priority_mix_policy.py @@ -70,11 +70,7 @@ def main(): } ], }, - "osProfile": { - "adminPassword": "{your-password}", - "adminUsername": "{your-username}", - "computerNamePrefix": "{vmss-name}", - }, + "osProfile": {"adminUsername": "{your-username}", "computerNamePrefix": "{vmss-name}"}, "priority": "Spot", "storageProfile": { "imageReference": { @@ -97,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py index 31c90ee91fd5..3139abf681ad 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_protected_settings_from_key_vault.py @@ -112,6 +112,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_proxy_agent_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_proxy_agent_settings.py index c5fdc13c92ab..6e7e72ca28fd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_proxy_agent_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_proxy_agent_settings.py @@ -65,7 +65,7 @@ def main(): "adminUsername": "{your-username}", "computerNamePrefix": "{vmss-name}", }, - "securityProfile": {"proxyAgentSettings": {"enabled": True, "mode": "Enforce"}}, + "securityProfile": {"proxyAgentSettings": {"enabled": True}}, "storageProfile": { "imageReference": { "offer": "WindowsServer", @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py index beec39bfe58e..78b776a7e404 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_creation_policy.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py index e7eade5a02ec..13bf17277293 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_resilient_vm_deletion_policy.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_scale_in_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_scale_in_policy.py index ac47a023a9a1..d2a931b49a19 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_scale_in_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_scale_in_policy.py @@ -37,7 +37,7 @@ def main(): "location": "westus", "properties": { "overprovision": True, - "scaleInPolicy": {"forceDeletion": True, "rules": ["OldestVM"]}, + "scaleInPolicy": {"forceDeletion": True, "prioritizeUnhealthyVMs": True, "rules": ["OldestVM"]}, "upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": { "networkProfile": { @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_posture_reference.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_posture_reference.py index de0c3c1088da..0e63011a484c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_posture_reference.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_posture_reference.py @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py index d9e0a5918ff5..d83780c33c09 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py index 7f987ea87d7e..f30d81a5f4c9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_security_type_confidential_vm_with_non_persisted_tpm.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_service_artifact_reference.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_service_artifact_reference.py index 77f5a0c5ac07..efd37b773320 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_service_artifact_reference.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_service_artifact_reference.py @@ -85,6 +85,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile.py index 27e08d8a1b71..533002b2a893 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile.py @@ -94,6 +94,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py new file mode 100644 index 000000000000..2450f2454924 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_sku_profile_prioritized.py @@ -0,0 +1,103 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_create_with_sku_profile_prioritized.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_scale_sets.begin_create_or_update( + resource_group_name="myResourceGroup", + vm_scale_set_name="{vmss-name}", + parameters={ + "location": "westus", + "properties": { + "orchestrationMode": "Flexible", + "priorityMixPolicy": {"baseRegularPriorityCount": 4, "regularPriorityPercentageAboveBase": 50}, + "singlePlacementGroup": False, + "skuProfile": { + "allocationStrategy": "Prioritized", + "vmSizes": [ + {"name": "Standard_D8s_v5", "rank": 0}, + {"name": "Standard_E16s_v5", "rank": 1}, + {"name": "Standard_D2s_v5", "rank": 2}, + ], + }, + "virtualMachineProfile": { + "billingProfile": {"maxPrice": -1}, + "evictionPolicy": "Deallocate", + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "enableIPForwarding": True, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + }, + } + ], + "primary": True, + }, + } + ] + }, + "osProfile": { + "adminPassword": "{your-password}", + "adminUsername": "{your-username}", + "computerNamePrefix": "{vmss-name}", + }, + "priority": "Spot", + "storageProfile": { + "imageReference": { + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2016-Datacenter", + "version": "latest", + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "managedDisk": {"storageAccountType": "Standard_LRS"}, + }, + }, + }, + }, + "sku": {"capacity": 10, "name": "Mix"}, + }, + ).result() + print(response) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_spot_restore_policy.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_spot_restore_policy.py index 5aeff461a048..eb3d063eeb72 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_spot_restore_policy.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_spot_restore_policy.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_ssh_authentication.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_ssh_authentication.py index 8e49fee4298b..f6a98b544061 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_ssh_authentication.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_ssh_authentication.py @@ -96,6 +96,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py index 874e87f0c320..6151ff0473b4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_terminate_scheduled_event_enabled.py @@ -89,6 +89,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_uefi_settings.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_uefi_settings.py index e5b0c4f66917..f4eb3a5f7910 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_uefi_settings.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_uefi_settings.py @@ -90,6 +90,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_user_data.py index 7dbb052c7507..87cde2121c47 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_user_data.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vm_size_properties.py index e219a4b618b7..4764a42436c6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vm_size_properties.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vms_in_different_zones.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vms_in_different_zones.py index 42875cd34197..ac0fd927d184 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vms_in_different_zones.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_vms_in_different_zones.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py index f03921ebbaa9..e23cd83a75ce 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_create_with_zonal_platform_fault_domain_align_mode.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_maximum_set_gen.py index 75b72baf6b28..344c8f5c2707 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_minimum_set_gen.py index 1b8fbe648a1e..68dd87bcfd16 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_deallocate_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_delete_force.py index 4dfa3ecd11cb..6641ba86df9c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_delete_force.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py index 2079e5a8465c..a26e0d591e68 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_create_or_update_maximum_set_gen.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py index 55eee4793be6..315cbb66ccc1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py index 1c9efb557e91..203f37a169af 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_delete_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_maximum_set_gen.py index 52eeebb9206c..6dbf2455f4a1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_minimum_set_gen.py index 29ab8a40de14..f1fc84ad4b54 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_get_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_maximum_set_gen.py index 0b30923e475f..a906e0af354a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_minimum_set_gen.py index eb5c76471fd6..452b77cd8c4f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_list_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_rolling_upgrade.py index 1a0220ab30ff..36ef5c512e23 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_rolling_upgrade.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_update_maximum_set_gen.py index e45fcc55fb79..6aca09d8d771 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_extension_update_maximum_set_gen.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py index 87d9258df433..c5e765c70d72 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py index 982ff38c0cdf..37c458168c7b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_force_recovery_service_fabric_platform_update_domain_walk_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get.py index c813c8769275..8bc391fa84e7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py index abc7a8a0e653..21b88c0a5d1a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_auto_placed_on_dedicated_host_group.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py index d0a78d9aace8..45243a913ad0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py index 78c604e5db2c..13c72d3ec0e3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_instance_view_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py index b4fbc5e7a882..bd69914d9a06 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py index 6ccda560d193..3c7ce0a05ec6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_os_upgrade_history_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_disk_controller_type.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_disk_controller_type.py index faa6bc1c6c2d..b06368a3e7a6 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_disk_controller_type.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_disk_controller_type.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_user_data.py index 657ce6e7eeba..f808e14a9efd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_get_with_user_data.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_maximum_set_gen.py index 6b54a76aa343..4e6152e733f4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_minimum_set_gen.py index 4bdd2a6ab144..80eb6dca8458 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_all_minimum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_by_subscription_by_location.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_by_subscription_by_location.py index eb07e99d523f..91557b0c9c17 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_by_subscription_by_location.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_by_subscription_by_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_maximum_set_gen.py index edcb16f9a0f9..ef4a863e4cad 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_minimum_set_gen.py index a5d7d62d6050..4323f730c6f4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_maximum_set_gen.py index 0c72517aa794..b7b787e28637 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_minimum_set_gen.py index 076663af561e..d9a42bde4bd0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_list_skus_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py index 3f5793b68a5f..d4804a33584d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py index 9cecef18c278..33ce6ee800c8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_perform_maintenance_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_maximum_set_gen.py index 236ae94473e9..f270e5a11a78 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_minimum_set_gen.py index 4ccd9636200e..f631543813b8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_power_off_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_maximum_set_gen.py index fa1e369fff92..f51fcc3c9d39 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_minimum_set_gen.py index b5633c394b1e..9124a9902319 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reapply_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_maximum_set_gen.py index 4b381ecbb9a6..21deb667f055 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_minimum_set_gen.py index 7940301172da..dfc5ab505ab2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_redeploy_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py index 42755613abbc..5c966ab51ea1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py index 8c712ad32d43..4461f31ba202 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_all_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_maximum_set_gen.py index 037e0a866a50..d8d60727f60f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_minimum_set_gen.py index 71d3d02cc0d3..a2cd66f9d1d0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_reimage_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_maximum_set_gen.py index 739ec27326a9..d621d726232b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_minimum_set_gen.py index 6bb01b2cc68a..59fd38842273 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_restart_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py index f2ff1c450cd1..2e94169c428a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py index 5952384ad3fc..98a276961bfd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_cancel_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py index c57195bcf772..a30a2e1ffc38 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py index 77858f60335f..9664c2ddd20d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_get_latest_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py index 4ce435c2997e..e8f24384b6d0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py index 51d49de6a346..4600f68b0335 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_rolling_upgrade_start_os_upgrade_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py index a515ff891fa0..8f3c1ad60db5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py index af0fd9ffa20f..4172165a29b8 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_set_orchestration_service_state_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_maximum_set_gen.py index 4ada6e1be3ba..84908b4bbfa5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_minimum_set_gen.py index 535630ffbf8d..331a72231591 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_start_minimum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_update_maximum_set_gen.py index a6129bf00283..9bf430327c29 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_update_maximum_set_gen.py @@ -265,6 +265,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py index 97fa5a6c0428..f7164bf52080 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_approve_rolling_upgrade.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py index 0a3a68fbbc4d..1285ad38dda4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_maximum_set_gen.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py index 2054da76a585..0ff53563fc8a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_attach_detach_data_disks_minimum_set_gen.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py index e5ce427f1c92..b1c15288a2dd 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py index 15097dbb923d..524f11241ed0 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_deallocate_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_delete_force.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_delete_force.py index 1d65b60e9961..c08b8708a8a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_delete_force.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_delete_force.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_create.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_create.py index e681a3f78c14..0130eb8afdea 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_create.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_delete.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_delete.py index 4d3c923b8458..aa5e3c7e5444 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_delete.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_get.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_get.py index f947f64e220d..4e6f352aca72 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_get.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_list.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_list.py index 7f79c852e044..92076fcf610c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_list.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_list.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_update.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_update.py index a6f4c1672b19..d0885ce5d507 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_update.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_extension_update.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py index 433dfb932218..f99158ee7e6e 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_instance_view_auto_placed_on_dedicated_host_group.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py new file mode 100644 index 000000000000..a3382838ad3c --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_get_with_resilient_vm_deletion_status.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_scale_set_vms.get( + resource_group_name="myResourceGroup", + vm_scale_set_name="{vmss-name}", + instance_id="1", + ) + print(response) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_user_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_user_data.py index 0c0769837b8e..c5352ebee942 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_user_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_user_data.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py index c314279006bd..880166b1e15a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_get_with_vm_size_properties.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_maximum_set_gen.py index 9c7f34e5a674..02353acba6ac 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_minimum_set_gen.py index 953386f03a25..3712e6d79306 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_minimum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_with_resiliency_view.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_with_resiliency_view.py new file mode 100644 index 000000000000..ee8ab3692ba5 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_list_with_resiliency_view.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.compute import ComputeManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-compute +# USAGE + python virtual_machine_scale_set_vm_list_with_resiliency_view.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ComputeManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.virtual_machine_scale_set_vms.list( + resource_group_name="resourceGroupname", + virtual_machine_scale_set_name="vmssName", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py index 67e7db73639c..a207801b4cf5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py index e6fbf2962b1b..8ea3f930ecca 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_perform_maintenance_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py index 66b40f92c971..938f57749e22 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py index 34f9b0efe2c3..4e4c4d2856b5 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_power_off_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py index 61e657f323af..a8e81c81fb79 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py index 045badb68c70..3c054e34154b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_redeploy_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py index 3c426493d888..e2c77ae02b6d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py index aab11aa02e42..bfdf98d4d489 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_all_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py index 6aee1aef8721..01e43554e7c7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py index dd19ebb2766a..50ceb9927e34 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_reimage_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py index 923c915b9a6e..ed1b3bd96d3f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py index 6a8f15431659..44333119fa99 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_restart_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py index f21d5816c19c..2e3dfca0ae96 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_retrieve_boot_diagnostics_data.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_simulate_eviction.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_simulate_eviction.py index c7313625435e..6c92e9c5796d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_simulate_eviction.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_simulate_eviction.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_maximum_set_gen.py index a4e284e66ef5..1696b36394d4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_minimum_set_gen.py index c497e73039d9..dac4bcf9b396 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_start_minimum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_maximum_set_gen.py index b0cff2b02db5..f734a382ad06 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_maximum_set_gen.py @@ -436,6 +436,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_minimum_set_gen.py index fa9efc7d21e9..5396ebccb481 100644 --- a/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_minimum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute/generated_samples/virtual_machine_scale_set_examples/virtual_machine_scale_set_vm_update_minimum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-07-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json +# x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-11-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py index 23e675ddbe93..ffa4881c7178 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations.py @@ -48,9 +48,16 @@ def test_availability_sets_create_or_update(self, resource_group): ], "tags": {"str": "str"}, "type": "str", + "virtualMachineScaleSetMigrationInfo": { + "defaultVirtualMachineScaleSetInfo": { + "constrainedMaximumCapacity": bool, + "defaultVirtualMachineScaleSet": {"id": "str"}, + }, + "migrateToVirtualMachineScaleSet": {"id": "str"}, + }, "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -82,9 +89,16 @@ def test_availability_sets_update(self, resource_group): } ], "tags": {"str": "str"}, + "virtualMachineScaleSetMigrationInfo": { + "defaultVirtualMachineScaleSetInfo": { + "constrainedMaximumCapacity": bool, + "defaultVirtualMachineScaleSet": {"id": "str"}, + }, + "migrateToVirtualMachineScaleSet": {"id": "str"}, + }, "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -96,7 +110,7 @@ def test_availability_sets_delete(self, resource_group): response = self.client.availability_sets.delete( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -108,7 +122,7 @@ def test_availability_sets_get(self, resource_group): response = self.client.availability_sets.get( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -118,7 +132,7 @@ def test_availability_sets_get(self, resource_group): @recorded_by_proxy def test_availability_sets_list_by_subscription(self, resource_group): response = self.client.availability_sets.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -129,7 +143,7 @@ def test_availability_sets_list_by_subscription(self, resource_group): def test_availability_sets_list(self, resource_group): response = self.client.availability_sets.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -141,8 +155,58 @@ def test_availability_sets_list_available_sizes(self, resource_group): response = self.client.availability_sets.list_available_sizes( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_availability_sets_start_migration_to_virtual_machine_scale_set(self, resource_group): + response = self.client.availability_sets.start_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_availability_sets_cancel_migration_to_virtual_machine_scale_set(self, resource_group): + response = self.client.availability_sets.cancel_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_availability_sets_validate_migration_to_virtual_machine_scale_set(self, resource_group): + response = self.client.availability_sets.validate_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_availability_sets_begin_convert_to_virtual_machine_scale_set(self, resource_group): + response = self.client.availability_sets.begin_convert_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + api_version="2024-11-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py index 80e789b1a678..45731b30b4ee 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_availability_sets_operations_async.py @@ -49,9 +49,16 @@ async def test_availability_sets_create_or_update(self, resource_group): ], "tags": {"str": "str"}, "type": "str", + "virtualMachineScaleSetMigrationInfo": { + "defaultVirtualMachineScaleSetInfo": { + "constrainedMaximumCapacity": bool, + "defaultVirtualMachineScaleSet": {"id": "str"}, + }, + "migrateToVirtualMachineScaleSet": {"id": "str"}, + }, "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -83,9 +90,16 @@ async def test_availability_sets_update(self, resource_group): } ], "tags": {"str": "str"}, + "virtualMachineScaleSetMigrationInfo": { + "defaultVirtualMachineScaleSetInfo": { + "constrainedMaximumCapacity": bool, + "defaultVirtualMachineScaleSet": {"id": "str"}, + }, + "migrateToVirtualMachineScaleSet": {"id": "str"}, + }, "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -97,7 +111,7 @@ async def test_availability_sets_delete(self, resource_group): response = await self.client.availability_sets.delete( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -109,7 +123,7 @@ async def test_availability_sets_get(self, resource_group): response = await self.client.availability_sets.get( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -119,7 +133,7 @@ async def test_availability_sets_get(self, resource_group): @recorded_by_proxy_async async def test_availability_sets_list_by_subscription(self, resource_group): response = self.client.availability_sets.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -130,7 +144,7 @@ async def test_availability_sets_list_by_subscription(self, resource_group): async def test_availability_sets_list(self, resource_group): response = self.client.availability_sets.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -142,8 +156,60 @@ async def test_availability_sets_list_available_sizes(self, resource_group): response = self.client.availability_sets.list_available_sizes( resource_group_name=resource_group.name, availability_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_availability_sets_start_migration_to_virtual_machine_scale_set(self, resource_group): + response = await self.client.availability_sets.start_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_availability_sets_cancel_migration_to_virtual_machine_scale_set(self, resource_group): + response = await self.client.availability_sets.cancel_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_availability_sets_validate_migration_to_virtual_machine_scale_set(self, resource_group): + response = await self.client.availability_sets.validate_migration_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + parameters={"virtualMachineScaleSetFlexible": {"id": "str"}}, + api_version="2024-11-01", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_availability_sets_begin_convert_to_virtual_machine_scale_set(self, resource_group): + response = await ( + await self.client.availability_sets.begin_convert_to_virtual_machine_scale_set( + resource_group_name=resource_group.name, + availability_set_name="str", + api_version="2024-11-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py index 3d01c9032d37..790ba618ad0f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations.py @@ -53,7 +53,7 @@ def test_capacity_reservation_groups_create_or_update(self, resource_group): "virtualMachinesAssociated": [{"id": "str"}], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_capacity_reservation_groups_update(self, resource_group): "tags": {"str": "str"}, "virtualMachinesAssociated": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -101,7 +101,7 @@ def test_capacity_reservation_groups_delete(self, resource_group): response = self.client.capacity_reservation_groups.delete( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -113,7 +113,7 @@ def test_capacity_reservation_groups_get(self, resource_group): response = self.client.capacity_reservation_groups.get( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -124,7 +124,7 @@ def test_capacity_reservation_groups_get(self, resource_group): def test_capacity_reservation_groups_list_by_resource_group(self, resource_group): response = self.client.capacity_reservation_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -134,7 +134,7 @@ def test_capacity_reservation_groups_list_by_resource_group(self, resource_group @recorded_by_proxy def test_capacity_reservation_groups_list_by_subscription(self, resource_group): response = self.client.capacity_reservation_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py index e28bd05f9ab9..104d59afec66 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservation_groups_operations_async.py @@ -54,7 +54,7 @@ async def test_capacity_reservation_groups_create_or_update(self, resource_group "virtualMachinesAssociated": [{"id": "str"}], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ async def test_capacity_reservation_groups_update(self, resource_group): "tags": {"str": "str"}, "virtualMachinesAssociated": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ async def test_capacity_reservation_groups_delete(self, resource_group): response = await self.client.capacity_reservation_groups.delete( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -114,7 +114,7 @@ async def test_capacity_reservation_groups_get(self, resource_group): response = await self.client.capacity_reservation_groups.get( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -125,7 +125,7 @@ async def test_capacity_reservation_groups_get(self, resource_group): async def test_capacity_reservation_groups_list_by_resource_group(self, resource_group): response = self.client.capacity_reservation_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -135,7 +135,7 @@ async def test_capacity_reservation_groups_list_by_resource_group(self, resource @recorded_by_proxy_async async def test_capacity_reservation_groups_list_by_subscription(self, resource_group): response = self.client.capacity_reservation_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py index 980e9c6ff718..919fbefb82ef 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations.py @@ -52,7 +52,7 @@ def test_capacity_reservations_begin_create_or_update(self, resource_group): "virtualMachinesAssociated": [{"id": "str"}], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -87,7 +87,7 @@ def test_capacity_reservations_begin_update(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -100,7 +100,7 @@ def test_capacity_reservations_begin_delete(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -113,7 +113,7 @@ def test_capacity_reservations_get(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -125,7 +125,7 @@ def test_capacity_reservations_list_by_capacity_reservation_group(self, resource response = self.client.capacity_reservations.list_by_capacity_reservation_group( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py index 1dab0f7b7a34..4dd700c1322d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_capacity_reservations_operations_async.py @@ -54,7 +54,7 @@ async def test_capacity_reservations_begin_create_or_update(self, resource_group "virtualMachinesAssociated": [{"id": "str"}], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -91,7 +91,7 @@ async def test_capacity_reservations_begin_update(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "virtualMachinesAssociated": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -106,7 +106,7 @@ async def test_capacity_reservations_begin_delete(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -120,7 +120,7 @@ async def test_capacity_reservations_get(self, resource_group): resource_group_name=resource_group.name, capacity_reservation_group_name="str", capacity_reservation_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -132,7 +132,7 @@ async def test_capacity_reservations_list_by_capacity_reservation_group(self, re response = self.client.capacity_reservations.list_by_capacity_reservation_group( resource_group_name=resource_group.name, capacity_reservation_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py index 5a84c31f1a3a..d36e68d632c2 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations.py @@ -54,7 +54,7 @@ def test_dedicated_host_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_dedicated_host_groups_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_dedicated_host_groups_delete(self, resource_group): response = self.client.dedicated_host_groups.delete( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_dedicated_host_groups_get(self, resource_group): response = self.client.dedicated_host_groups.get( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -127,7 +127,7 @@ def test_dedicated_host_groups_get(self, resource_group): def test_dedicated_host_groups_list_by_resource_group(self, resource_group): response = self.client.dedicated_host_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -137,7 +137,7 @@ def test_dedicated_host_groups_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_dedicated_host_groups_list_by_subscription(self, resource_group): response = self.client.dedicated_host_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py index c0348ff8a919..c70854c47514 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_host_groups_operations_async.py @@ -55,7 +55,7 @@ async def test_dedicated_host_groups_create_or_update(self, resource_group): "type": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_dedicated_host_groups_update(self, resource_group): "tags": {"str": "str"}, "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_dedicated_host_groups_delete(self, resource_group): response = await self.client.dedicated_host_groups.delete( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -117,7 +117,7 @@ async def test_dedicated_host_groups_get(self, resource_group): response = await self.client.dedicated_host_groups.get( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -128,7 +128,7 @@ async def test_dedicated_host_groups_get(self, resource_group): async def test_dedicated_host_groups_list_by_resource_group(self, resource_group): response = self.client.dedicated_host_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -138,7 +138,7 @@ async def test_dedicated_host_groups_list_by_resource_group(self, resource_group @recorded_by_proxy_async async def test_dedicated_host_groups_list_by_subscription(self, resource_group): response = self.client.dedicated_host_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py index 01fe8d816cc3..3743fe349c52 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations.py @@ -54,7 +54,7 @@ def test_dedicated_hosts_begin_create_or_update(self, resource_group): "type": "str", "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_dedicated_hosts_begin_update(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -105,7 +105,7 @@ def test_dedicated_hosts_begin_delete(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -118,7 +118,7 @@ def test_dedicated_hosts_get(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -130,7 +130,7 @@ def test_dedicated_hosts_list_by_host_group(self, resource_group): response = self.client.dedicated_hosts.list_by_host_group( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -143,7 +143,7 @@ def test_dedicated_hosts_begin_restart(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -156,7 +156,7 @@ def test_dedicated_hosts_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -169,7 +169,7 @@ def test_dedicated_hosts_list_available_sizes(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py index 981a2921a3e8..2b703bdba4d4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_dedicated_hosts_operations_async.py @@ -56,7 +56,7 @@ async def test_dedicated_hosts_begin_create_or_update(self, resource_group): "type": "str", "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_dedicated_hosts_begin_update(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "virtualMachines": [{"id": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -111,7 +111,7 @@ async def test_dedicated_hosts_begin_delete(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -125,7 +125,7 @@ async def test_dedicated_hosts_get(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -137,7 +137,7 @@ async def test_dedicated_hosts_list_by_host_group(self, resource_group): response = self.client.dedicated_hosts.list_by_host_group( resource_group_name=resource_group.name, host_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -151,7 +151,7 @@ async def test_dedicated_hosts_begin_restart(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -166,7 +166,7 @@ async def test_dedicated_hosts_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -180,7 +180,7 @@ async def test_dedicated_hosts_list_available_sizes(self, resource_group): resource_group_name=resource_group.name, host_group_name="str", host_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py index 6b3abf158334..eb9f8554116d 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations.py @@ -61,7 +61,7 @@ def test_images_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -105,7 +105,7 @@ def test_images_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +117,7 @@ def test_images_begin_delete(self, resource_group): response = self.client.images.begin_delete( resource_group_name=resource_group.name, image_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -129,7 +129,7 @@ def test_images_get(self, resource_group): response = self.client.images.get( resource_group_name=resource_group.name, image_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ def test_images_get(self, resource_group): def test_images_list_by_resource_group(self, resource_group): response = self.client.images.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -150,7 +150,7 @@ def test_images_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_images_list(self, resource_group): response = self.client.images.list( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py index 16a710ea66f0..7b9d7f38918f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_images_operations_async.py @@ -63,7 +63,7 @@ async def test_images_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -109,7 +109,7 @@ async def test_images_begin_update(self, resource_group): }, "tags": {"str": "str"}, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -123,7 +123,7 @@ async def test_images_begin_delete(self, resource_group): await self.client.images.begin_delete( resource_group_name=resource_group.name, image_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -136,7 +136,7 @@ async def test_images_get(self, resource_group): response = await self.client.images.get( resource_group_name=resource_group.name, image_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -147,7 +147,7 @@ async def test_images_get(self, resource_group): async def test_images_list_by_resource_group(self, resource_group): response = self.client.images.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -157,7 +157,7 @@ async def test_images_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_images_list(self, resource_group): response = self.client.images.list( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py index 93aaf3d53b13..301993f9a19f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations.py @@ -34,7 +34,7 @@ def test_log_analytics_begin_export_request_rate_by_interval(self, resource_grou "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -55,7 +55,7 @@ def test_log_analytics_begin_export_throttled_requests(self, resource_group): "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py index 5ef27f9e34f4..3d7976d99d17 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_log_analytics_operations_async.py @@ -36,7 +36,7 @@ async def test_log_analytics_begin_export_request_rate_by_interval(self, resourc "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -59,7 +59,7 @@ async def test_log_analytics_begin_export_throttled_requests(self, resource_grou "groupByThrottlePolicy": bool, "groupByUserAgent": bool, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py index 8ac1b2772b59..ed05bcf20bf4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py index e5fa673bdb2a..30a354b38846 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py index 0bf0829c978b..36326323ffc4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations.py @@ -77,7 +77,7 @@ def test_proximity_placement_groups_create_or_update(self, resource_group): ], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_proximity_placement_groups_update(self, resource_group): resource_group_name=resource_group.name, proximity_placement_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ def test_proximity_placement_groups_delete(self, resource_group): response = self.client.proximity_placement_groups.delete( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_proximity_placement_groups_get(self, resource_group): response = self.client.proximity_placement_groups.get( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -124,7 +124,7 @@ def test_proximity_placement_groups_get(self, resource_group): @recorded_by_proxy def test_proximity_placement_groups_list_by_subscription(self, resource_group): response = self.client.proximity_placement_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -135,7 +135,7 @@ def test_proximity_placement_groups_list_by_subscription(self, resource_group): def test_proximity_placement_groups_list_by_resource_group(self, resource_group): response = self.client.proximity_placement_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py index a60d0aaff0d5..ee1b92c7128a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_proximity_placement_groups_operations_async.py @@ -78,7 +78,7 @@ async def test_proximity_placement_groups_create_or_update(self, resource_group) ], "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ async def test_proximity_placement_groups_update(self, resource_group): resource_group_name=resource_group.name, proximity_placement_group_name="str", parameters={"tags": {"str": "str"}}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -103,7 +103,7 @@ async def test_proximity_placement_groups_delete(self, resource_group): response = await self.client.proximity_placement_groups.delete( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ async def test_proximity_placement_groups_get(self, resource_group): response = await self.client.proximity_placement_groups.get( resource_group_name=resource_group.name, proximity_placement_group_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -125,7 +125,7 @@ async def test_proximity_placement_groups_get(self, resource_group): @recorded_by_proxy_async async def test_proximity_placement_groups_list_by_subscription(self, resource_group): response = self.client.proximity_placement_groups.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -136,7 +136,7 @@ async def test_proximity_placement_groups_list_by_subscription(self, resource_gr async def test_proximity_placement_groups_list_by_resource_group(self, resource_group): response = self.client.proximity_placement_groups.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py index 31f5ff08b8b6..235385831fb1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations.py @@ -127,7 +127,13 @@ def test_restore_point_collections_create_or_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -195,7 +201,7 @@ def test_restore_point_collections_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -307,7 +313,13 @@ def test_restore_point_collections_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -374,7 +386,7 @@ def test_restore_point_collections_update(self, resource_group): "source": {"id": "str", "location": "str"}, "tags": {"str": "str"}, }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -386,7 +398,7 @@ def test_restore_point_collections_begin_delete(self, resource_group): response = self.client.restore_point_collections.begin_delete( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -398,7 +410,7 @@ def test_restore_point_collections_get(self, resource_group): response = self.client.restore_point_collections.get( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -409,7 +421,7 @@ def test_restore_point_collections_get(self, resource_group): def test_restore_point_collections_list(self, resource_group): response = self.client.restore_point_collections.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -419,7 +431,7 @@ def test_restore_point_collections_list(self, resource_group): @recorded_by_proxy def test_restore_point_collections_list_all(self, resource_group): response = self.client.restore_point_collections.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py index c0c62061774a..441bdeacd7c4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_point_collections_operations_async.py @@ -128,7 +128,13 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -196,7 +202,7 @@ async def test_restore_point_collections_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -308,7 +314,13 @@ async def test_restore_point_collections_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -375,7 +387,7 @@ async def test_restore_point_collections_update(self, resource_group): "source": {"id": "str", "location": "str"}, "tags": {"str": "str"}, }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -388,7 +400,7 @@ async def test_restore_point_collections_begin_delete(self, resource_group): await self.client.restore_point_collections.begin_delete( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -401,7 +413,7 @@ async def test_restore_point_collections_get(self, resource_group): response = await self.client.restore_point_collections.get( resource_group_name=resource_group.name, restore_point_collection_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -412,7 +424,7 @@ async def test_restore_point_collections_get(self, resource_group): async def test_restore_point_collections_list(self, resource_group): response = self.client.restore_point_collections.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -422,7 +434,7 @@ async def test_restore_point_collections_list(self, resource_group): @recorded_by_proxy_async async def test_restore_point_collections_list_all(self, resource_group): response = self.client.restore_point_collections.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py index 54cb1e9f633f..2a5ff310e69c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations.py @@ -118,7 +118,13 @@ def test_restore_points_begin_create(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -181,7 +187,7 @@ def test_restore_points_begin_create(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -194,7 +200,7 @@ def test_restore_points_begin_delete(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -207,7 +213,7 @@ def test_restore_points_get(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py index 4ee549aec41c..6bee2d4653ba 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_restore_points_operations_async.py @@ -123,7 +123,13 @@ async def test_restore_points_begin_create(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -186,7 +192,7 @@ async def test_restore_points_begin_create(self, resource_group): "timeCreated": "2020-02-20 00:00:00", "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -201,7 +207,7 @@ async def test_restore_points_begin_delete(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -215,7 +221,7 @@ async def test_restore_points_get(self, resource_group): resource_group_name=resource_group.name, restore_point_collection_name="str", restore_point_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py index 8a471d311f2d..0469597c756f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_ssh_public_keys_list_by_subscription(self, resource_group): response = self.client.ssh_public_keys.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -33,7 +33,7 @@ def test_ssh_public_keys_list_by_subscription(self, resource_group): def test_ssh_public_keys_list_by_resource_group(self, resource_group): response = self.client.ssh_public_keys.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_ssh_public_keys_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_ssh_public_keys_update(self, resource_group): resource_group_name=resource_group.name, ssh_public_key_name="str", parameters={"publicKey": "str", "tags": {"str": "str"}}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_ssh_public_keys_delete(self, resource_group): response = self.client.ssh_public_keys.delete( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -90,7 +90,7 @@ def test_ssh_public_keys_get(self, resource_group): response = self.client.ssh_public_keys.get( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ def test_ssh_public_keys_generate_key_pair(self, resource_group): response = self.client.ssh_public_keys.generate_key_pair( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py index cb3758a0a0ad..ab9701888f12 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_ssh_public_keys_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_ssh_public_keys_list_by_subscription(self, resource_group): response = self.client.ssh_public_keys.list_by_subscription( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ async def test_ssh_public_keys_list_by_subscription(self, resource_group): async def test_ssh_public_keys_list_by_resource_group(self, resource_group): response = self.client.ssh_public_keys.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_ssh_public_keys_create(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_ssh_public_keys_update(self, resource_group): resource_group_name=resource_group.name, ssh_public_key_name="str", parameters={"publicKey": "str", "tags": {"str": "str"}}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_ssh_public_keys_delete(self, resource_group): response = await self.client.ssh_public_keys.delete( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ async def test_ssh_public_keys_get(self, resource_group): response = await self.client.ssh_public_keys.get( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -103,7 +103,7 @@ async def test_ssh_public_keys_generate_key_pair(self, resource_group): response = await self.client.ssh_public_keys.generate_key_pair( resource_group_name=resource_group.name, ssh_public_key_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py index 131b83beeb6d..1fe516cfd211 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usage_list(self, resource_group): response = self.client.usage.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py index 8380b244ebb0..aea1886af5c3 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_usage_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usage_list(self, resource_group): response = self.client.usage.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py index 2794bf6c5591..06822439184c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations.py @@ -26,7 +26,7 @@ def test_virtual_machine_extension_images_get(self, resource_group): publisher_name="str", type="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_virtual_machine_extension_images_list_types(self, resource_group): response = self.client.virtual_machine_extension_images.list_types( location="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_virtual_machine_extension_images_list_versions(self, resource_group): location="str", publisher_name="str", type="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py index d3ffc303fc52..70e87b95d9c1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extension_images_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_machine_extension_images_get(self, resource_group): publisher_name="str", type="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_virtual_machine_extension_images_list_types(self, resource_group) response = await self.client.virtual_machine_extension_images.list_types( location="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_virtual_machine_extension_images_list_versions(self, resource_gro location="str", publisher_name="str", type="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py index eaa34e135507..21ee1e5bfd9f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations.py @@ -66,7 +66,7 @@ def test_virtual_machine_extensions_begin_create_or_update(self, resource_group) "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_virtual_machine_extensions_begin_update(self, resource_group): "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -105,7 +105,7 @@ def test_virtual_machine_extensions_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -118,7 +118,7 @@ def test_virtual_machine_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -130,7 +130,7 @@ def test_virtual_machine_extensions_list(self, resource_group): response = self.client.virtual_machine_extensions.list( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py index 5e1ede0cd98e..b0eb74a09db4 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_extensions_operations_async.py @@ -68,7 +68,7 @@ async def test_virtual_machine_extensions_begin_create_or_update(self, resource_ "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_virtual_machine_extensions_begin_update(self, resource_group): "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -111,7 +111,7 @@ async def test_virtual_machine_extensions_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -125,7 +125,7 @@ async def test_virtual_machine_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_name="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -137,7 +137,7 @@ async def test_virtual_machine_extensions_list(self, resource_group): response = await self.client.virtual_machine_extensions.list( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py index 4fb59da46659..c298c5af4872 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations.py @@ -28,7 +28,7 @@ def test_virtual_machine_images_edge_zone_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -43,7 +43,7 @@ def test_virtual_machine_images_edge_zone_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -56,7 +56,7 @@ def test_virtual_machine_images_edge_zone_list_offers(self, resource_group): location="str", edge_zone="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ def test_virtual_machine_images_edge_zone_list_publishers(self, resource_group): response = self.client.virtual_machine_images_edge_zone.list_publishers( location="str", edge_zone="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_virtual_machine_images_edge_zone_list_skus(self, resource_group): edge_zone="str", publisher_name="str", offer="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py index 904286e3195b..0e91202d2b72 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_edge_zone_operations_async.py @@ -29,7 +29,7 @@ async def test_virtual_machine_images_edge_zone_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -44,7 +44,7 @@ async def test_virtual_machine_images_edge_zone_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -57,7 +57,7 @@ async def test_virtual_machine_images_edge_zone_list_offers(self, resource_group location="str", edge_zone="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ async def test_virtual_machine_images_edge_zone_list_publishers(self, resource_g response = await self.client.virtual_machine_images_edge_zone.list_publishers( location="str", edge_zone="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_virtual_machine_images_edge_zone_list_skus(self, resource_group): edge_zone="str", publisher_name="str", offer="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py index b63b076d4fad..5a9125745c0b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations.py @@ -27,7 +27,7 @@ def test_virtual_machine_images_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -41,7 +41,7 @@ def test_virtual_machine_images_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_virtual_machine_images_list_offers(self, resource_group): response = self.client.virtual_machine_images.list_offers( location="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_virtual_machine_images_list_offers(self, resource_group): def test_virtual_machine_images_list_publishers(self, resource_group): response = self.client.virtual_machine_images.list_publishers( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ def test_virtual_machine_images_list_skus(self, resource_group): location="str", publisher_name="str", offer="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -89,8 +89,23 @@ def test_virtual_machine_images_list_by_edge_zone(self, resource_group): response = self.client.virtual_machine_images.list_by_edge_zone( location="str", edge_zone="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machine_images_list_with_properties(self, resource_group): + response = self.client.virtual_machine_images.list_with_properties( + location="str", + publisher_name="str", + offer="str", + skus="str", + expand="str", + api_version="2024-11-01", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py index a1e47ad047a4..5d1fd72b1588 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_images_operations_async.py @@ -28,7 +28,7 @@ async def test_virtual_machine_images_get(self, resource_group): offer="str", skus="str", version="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -42,7 +42,7 @@ async def test_virtual_machine_images_list(self, resource_group): publisher_name="str", offer="str", skus="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_virtual_machine_images_list_offers(self, resource_group): response = await self.client.virtual_machine_images.list_offers( location="str", publisher_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_virtual_machine_images_list_offers(self, resource_group): async def test_virtual_machine_images_list_publishers(self, resource_group): response = await self.client.virtual_machine_images.list_publishers( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ async def test_virtual_machine_images_list_skus(self, resource_group): location="str", publisher_name="str", offer="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -90,8 +90,23 @@ async def test_virtual_machine_images_list_by_edge_zone(self, resource_group): response = await self.client.virtual_machine_images.list_by_edge_zone( location="str", edge_zone="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machine_images_list_with_properties(self, resource_group): + response = self.client.virtual_machine_images.list_with_properties( + location="str", + publisher_name="str", + offer="str", + skus="str", + expand="str", + api_version="2024-11-01", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py index 51a90948af2a..caf662e06726 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_machine_run_commands_list(self, resource_group): response = self.client.virtual_machine_run_commands.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -35,7 +35,7 @@ def test_virtual_machine_run_commands_get(self, resource_group): response = self.client.virtual_machine_run_commands.get( location="str", command_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_virtual_machine_run_commands_begin_create_or_update(self, resource_grou "treatFailureAsDeploymentFailure": False, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -143,7 +143,7 @@ def test_virtual_machine_run_commands_begin_update(self, resource_group): "timeoutInSeconds": 0, "treatFailureAsDeploymentFailure": False, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -156,7 +156,7 @@ def test_virtual_machine_run_commands_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -169,7 +169,7 @@ def test_virtual_machine_run_commands_get_by_virtual_machine(self, resource_grou resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -181,7 +181,7 @@ def test_virtual_machine_run_commands_list_by_virtual_machine(self, resource_gro response = self.client.virtual_machine_run_commands.list_by_virtual_machine( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py index 546f0c02b0f2..a98c78cd9e3c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_run_commands_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_machine_run_commands_list(self, resource_group): response = self.client.virtual_machine_run_commands.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -36,7 +36,7 @@ async def test_virtual_machine_run_commands_get(self, resource_group): response = await self.client.virtual_machine_run_commands.get( location="str", command_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_virtual_machine_run_commands_begin_create_or_update(self, resourc "treatFailureAsDeploymentFailure": False, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -147,7 +147,7 @@ async def test_virtual_machine_run_commands_begin_update(self, resource_group): "timeoutInSeconds": 0, "treatFailureAsDeploymentFailure": False, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -162,7 +162,7 @@ async def test_virtual_machine_run_commands_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -176,7 +176,7 @@ async def test_virtual_machine_run_commands_get_by_virtual_machine(self, resourc resource_group_name=resource_group.name, vm_name="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -188,7 +188,7 @@ async def test_virtual_machine_run_commands_list_by_virtual_machine(self, resour response = self.client.virtual_machine_run_commands.list_by_virtual_machine( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py index b868f7903c37..03e5d61f5908 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations.py @@ -41,7 +41,7 @@ def test_virtual_machine_scale_set_extensions_begin_create_or_update(self, resou "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -70,7 +70,7 @@ def test_virtual_machine_scale_set_extensions_begin_update(self, resource_group) "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -83,7 +83,7 @@ def test_virtual_machine_scale_set_extensions_begin_delete(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -96,7 +96,7 @@ def test_virtual_machine_scale_set_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -108,7 +108,7 @@ def test_virtual_machine_scale_set_extensions_list(self, resource_group): response = self.client.virtual_machine_scale_set_extensions.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py index 199c9bbb930e..455263a801a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_extensions_operations_async.py @@ -43,7 +43,7 @@ async def test_virtual_machine_scale_set_extensions_begin_create_or_update(self, "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -74,7 +74,7 @@ async def test_virtual_machine_scale_set_extensions_begin_update(self, resource_ "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -89,7 +89,7 @@ async def test_virtual_machine_scale_set_extensions_begin_delete(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -103,7 +103,7 @@ async def test_virtual_machine_scale_set_extensions_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", vmss_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ async def test_virtual_machine_scale_set_extensions_list(self, resource_group): response = self.client.virtual_machine_scale_set_extensions.list( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py index d1a7408f6222..05546f2e3698 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -24,7 +24,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_cancel(self, resource_ response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_cancel( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -36,7 +36,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_start_os_upgrade(self, response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_os_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -48,7 +48,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_begin_start_extension_upgrad response = self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_extension_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_virtual_machine_scale_set_rolling_upgrades_get_latest(self, resource_gr response = self.client.virtual_machine_scale_set_rolling_upgrades.get_latest( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py index 91059cb1bcf5..b750272734f1 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_rolling_upgrades_operations_async.py @@ -26,7 +26,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_cancel(self, res await self.client.virtual_machine_scale_set_rolling_upgrades.begin_cancel( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -40,7 +40,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_start_os_upgrade await self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_os_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +54,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_begin_start_extension_ await self.client.virtual_machine_scale_set_rolling_upgrades.begin_start_extension_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -67,7 +67,7 @@ async def test_virtual_machine_scale_set_rolling_upgrades_get_latest(self, resou response = await self.client.virtual_machine_scale_set_rolling_upgrades.get_latest( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py index f51c78ad978a..96bb5a01f81b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations.py @@ -66,7 +66,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_create_or_update(self, re "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -94,7 +94,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_update(self, resource_gro "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -108,7 +108,7 @@ def test_virtual_machine_scale_set_vm_extensions_begin_delete(self, resource_gro vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -122,7 +122,7 @@ def test_virtual_machine_scale_set_vm_extensions_get(self, resource_group): vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -135,7 +135,7 @@ def test_virtual_machine_scale_set_vm_extensions_list(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py index d7939e6a4d0f..45821c887e5b 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_extensions_operations_async.py @@ -68,7 +68,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_create_or_update(se "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -98,7 +98,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_update(self, resour "type": "str", "typeHandlerVersion": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -114,7 +114,7 @@ async def test_virtual_machine_scale_set_vm_extensions_begin_delete(self, resour vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -129,7 +129,7 @@ async def test_virtual_machine_scale_set_vm_extensions_get(self, resource_group) vm_scale_set_name="str", instance_id="str", vm_extension_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -142,7 +142,7 @@ async def test_virtual_machine_scale_set_vm_extensions_list(self, resource_group resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py index a5fec3c2fe87..50cf9f96b1a7 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations.py @@ -69,7 +69,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_create_or_update(self, "treatFailureAsDeploymentFailure": False, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -122,7 +122,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_update(self, resource_g "timeoutInSeconds": 0, "treatFailureAsDeploymentFailure": False, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -136,7 +136,7 @@ def test_virtual_machine_scale_set_vm_run_commands_begin_delete(self, resource_g vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -150,7 +150,7 @@ def test_virtual_machine_scale_set_vm_run_commands_get(self, resource_group): vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -163,7 +163,7 @@ def test_virtual_machine_scale_set_vm_run_commands_list(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py index 1addfc190c84..fe9943a7b934 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vm_run_commands_operations_async.py @@ -71,7 +71,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_create_or_update( "treatFailureAsDeploymentFailure": False, "type": "str", }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -126,7 +126,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_update(self, reso "timeoutInSeconds": 0, "treatFailureAsDeploymentFailure": False, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -142,7 +142,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_begin_delete(self, reso vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -157,7 +157,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_get(self, resource_grou vm_scale_set_name="str", instance_id="str", run_command_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -170,7 +170,7 @@ async def test_virtual_machine_scale_set_vm_run_commands_list(self, resource_gro resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py index 56f9604cb060..8c93f7e6640a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations.py @@ -25,7 +25,7 @@ def test_virtual_machine_scale_set_vms_begin_reimage(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_virtual_machine_scale_set_vms_begin_reimage_all(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_virtual_machine_scale_set_vms_begin_approve_rolling_upgrade(self, resou resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_virtual_machine_scale_set_vms_begin_deallocate(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -352,6 +352,7 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "plan": {"name": "str", "product": "str", "promotionCode": "str", "publisher": "str"}, "protectionPolicy": {"protectFromScaleIn": bool, "protectFromScaleSetActions": bool}, "provisioningState": "str", + "resilientVMDeletionStatus": "str", "resources": [ { "autoUpgradeMinorVersion": bool, @@ -398,12 +399,19 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "sku": {"capacity": 0, "name": "str", "tier": "str"}, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -473,7 +481,7 @@ def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -486,7 +494,7 @@ def test_virtual_machine_scale_set_vms_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -499,7 +507,7 @@ def test_virtual_machine_scale_set_vms_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -512,7 +520,7 @@ def test_virtual_machine_scale_set_vms_get_instance_view(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -524,7 +532,7 @@ def test_virtual_machine_scale_set_vms_list(self, resource_group): response = self.client.virtual_machine_scale_set_vms.list( resource_group_name=resource_group.name, virtual_machine_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -537,7 +545,7 @@ def test_virtual_machine_scale_set_vms_begin_power_off(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -550,7 +558,7 @@ def test_virtual_machine_scale_set_vms_begin_restart(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -563,7 +571,7 @@ def test_virtual_machine_scale_set_vms_begin_start(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -576,7 +584,7 @@ def test_virtual_machine_scale_set_vms_begin_redeploy(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -589,7 +597,7 @@ def test_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data(self, reso resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -602,7 +610,7 @@ def test_virtual_machine_scale_set_vms_begin_perform_maintenance(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -615,7 +623,7 @@ def test_virtual_machine_scale_set_vms_simulate_eviction(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -641,7 +649,7 @@ def test_virtual_machine_scale_set_vms_begin_attach_detach_data_disks(self, reso ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -655,7 +663,7 @@ def test_virtual_machine_scale_set_vms_begin_run_command(self, resource_group): vm_scale_set_name="str", instance_id="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py index 6b3cb5117af3..855c34b4315f 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_set_vms_operations_async.py @@ -27,7 +27,7 @@ async def test_virtual_machine_scale_set_vms_begin_reimage(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -42,7 +42,7 @@ async def test_virtual_machine_scale_set_vms_begin_reimage_all(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -57,7 +57,7 @@ async def test_virtual_machine_scale_set_vms_begin_approve_rolling_upgrade(self, resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -72,7 +72,7 @@ async def test_virtual_machine_scale_set_vms_begin_deallocate(self, resource_gro resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -362,6 +362,7 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "plan": {"name": "str", "product": "str", "promotionCode": "str", "publisher": "str"}, "protectionPolicy": {"protectFromScaleIn": bool, "protectFromScaleSetActions": bool}, "provisioningState": "str", + "resilientVMDeletionStatus": "str", "resources": [ { "autoUpgradeMinorVersion": bool, @@ -408,12 +409,19 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "sku": {"capacity": 0, "name": "str", "tier": "str"}, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -486,7 +494,7 @@ async def test_virtual_machine_scale_set_vms_begin_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -501,7 +509,7 @@ async def test_virtual_machine_scale_set_vms_begin_delete(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -515,7 +523,7 @@ async def test_virtual_machine_scale_set_vms_get(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -528,7 +536,7 @@ async def test_virtual_machine_scale_set_vms_get_instance_view(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -540,7 +548,7 @@ async def test_virtual_machine_scale_set_vms_list(self, resource_group): response = self.client.virtual_machine_scale_set_vms.list( resource_group_name=resource_group.name, virtual_machine_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -554,7 +562,7 @@ async def test_virtual_machine_scale_set_vms_begin_power_off(self, resource_grou resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -569,7 +577,7 @@ async def test_virtual_machine_scale_set_vms_begin_restart(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -584,7 +592,7 @@ async def test_virtual_machine_scale_set_vms_begin_start(self, resource_group): resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -599,7 +607,7 @@ async def test_virtual_machine_scale_set_vms_begin_redeploy(self, resource_group resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -613,7 +621,7 @@ async def test_virtual_machine_scale_set_vms_retrieve_boot_diagnostics_data(self resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -627,7 +635,7 @@ async def test_virtual_machine_scale_set_vms_begin_perform_maintenance(self, res resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -641,7 +649,7 @@ async def test_virtual_machine_scale_set_vms_simulate_eviction(self, resource_gr resource_group_name=resource_group.name, vm_scale_set_name="str", instance_id="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -668,7 +676,7 @@ async def test_virtual_machine_scale_set_vms_begin_attach_detach_data_disks(self ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -684,7 +692,7 @@ async def test_virtual_machine_scale_set_vms_begin_run_command(self, resource_gr vm_scale_set_name="str", instance_id="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py index da37ef6ceae9..2e36cf50457c 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_machine_scale_sets_list_by_location(self, resource_group): response = self.client.virtual_machine_scale_sets.list_by_location( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -60,10 +60,15 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "provisioningState": "str", "proximityPlacementGroup": {"id": "str"}, "resiliencyPolicy": { + "automaticZoneRebalancingPolicy": { + "enabled": bool, + "rebalanceBehavior": "str", + "rebalanceStrategy": "str", + }, "resilientVMCreationPolicy": {"enabled": bool}, "resilientVMDeletionPolicy": {"enabled": bool}, }, - "scaleInPolicy": {"forceDeletion": bool, "rules": ["str"]}, + "scaleInPolicy": {"forceDeletion": bool, "prioritizeUnhealthyVMs": bool, "rules": ["str"]}, "scheduledEventsPolicy": { "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": {"enable": bool}}, "userInitiatedReboot": {"automaticallyApprove": bool}, @@ -71,7 +76,7 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) }, "singlePlacementGroup": bool, "sku": {"capacity": 0, "name": "str", "tier": "str"}, - "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str"}]}, + "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str", "rank": 0}]}, "spotRestorePolicy": {"enabled": bool, "restoreTimeout": "str"}, "tags": {"str": "str"}, "timeCreated": "2020-02-20 00:00:00", @@ -238,7 +243,13 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -304,7 +315,7 @@ def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_group) "zoneBalance": bool, "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -331,13 +342,18 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "priorityMixPolicy": {"baseRegularPriorityCount": 0, "regularPriorityPercentageAboveBase": 0}, "proximityPlacementGroup": {"id": "str"}, "resiliencyPolicy": { + "automaticZoneRebalancingPolicy": { + "enabled": bool, + "rebalanceBehavior": "str", + "rebalanceStrategy": "str", + }, "resilientVMCreationPolicy": {"enabled": bool}, "resilientVMDeletionPolicy": {"enabled": bool}, }, - "scaleInPolicy": {"forceDeletion": bool, "rules": ["str"]}, + "scaleInPolicy": {"forceDeletion": bool, "prioritizeUnhealthyVMs": bool, "rules": ["str"]}, "singlePlacementGroup": bool, "sku": {"capacity": 0, "name": "str", "tier": "str"}, - "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str"}]}, + "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str", "rank": 0}]}, "spotRestorePolicy": {"enabled": bool, "restoreTimeout": "str"}, "tags": {"str": "str"}, "upgradePolicy": { @@ -478,7 +494,13 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -538,7 +560,7 @@ def test_virtual_machine_scale_sets_begin_update(self, resource_group): "zonalPlatformFaultDomainAlignMode": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -550,7 +572,7 @@ def test_virtual_machine_scale_sets_begin_delete(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_delete( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -562,7 +584,7 @@ def test_virtual_machine_scale_sets_get(self, resource_group): response = self.client.virtual_machine_scale_sets.get( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -574,7 +596,7 @@ def test_virtual_machine_scale_sets_begin_deallocate(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_deallocate( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -587,7 +609,7 @@ def test_virtual_machine_scale_sets_begin_delete_instances(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -599,7 +621,7 @@ def test_virtual_machine_scale_sets_get_instance_view(self, resource_group): response = self.client.virtual_machine_scale_sets.get_instance_view( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -610,7 +632,7 @@ def test_virtual_machine_scale_sets_get_instance_view(self, resource_group): def test_virtual_machine_scale_sets_list(self, resource_group): response = self.client.virtual_machine_scale_sets.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -620,7 +642,7 @@ def test_virtual_machine_scale_sets_list(self, resource_group): @recorded_by_proxy def test_virtual_machine_scale_sets_list_all(self, resource_group): response = self.client.virtual_machine_scale_sets.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -632,7 +654,7 @@ def test_virtual_machine_scale_sets_list_skus(self, resource_group): response = self.client.virtual_machine_scale_sets.list_skus( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -644,7 +666,7 @@ def test_virtual_machine_scale_sets_get_os_upgrade_history(self, resource_group) response = self.client.virtual_machine_scale_sets.get_os_upgrade_history( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -656,7 +678,7 @@ def test_virtual_machine_scale_sets_begin_power_off(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_power_off( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -668,7 +690,7 @@ def test_virtual_machine_scale_sets_begin_restart(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_restart( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -680,7 +702,7 @@ def test_virtual_machine_scale_sets_begin_start(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_start( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -692,7 +714,7 @@ def test_virtual_machine_scale_sets_begin_reapply(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reapply( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -704,7 +726,7 @@ def test_virtual_machine_scale_sets_begin_redeploy(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_redeploy( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -716,7 +738,7 @@ def test_virtual_machine_scale_sets_begin_perform_maintenance(self, resource_gro response = self.client.virtual_machine_scale_sets.begin_perform_maintenance( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -729,7 +751,7 @@ def test_virtual_machine_scale_sets_begin_update_instances(self, resource_group) resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -741,7 +763,7 @@ def test_virtual_machine_scale_sets_begin_reimage(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reimage( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -753,7 +775,7 @@ def test_virtual_machine_scale_sets_begin_reimage_all(self, resource_group): response = self.client.virtual_machine_scale_sets.begin_reimage_all( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -765,7 +787,7 @@ def test_virtual_machine_scale_sets_begin_approve_rolling_upgrade(self, resource response = self.client.virtual_machine_scale_sets.begin_approve_rolling_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -778,7 +800,7 @@ def test_virtual_machine_scale_sets_force_recovery_service_fabric_platform_updat resource_group_name=resource_group.name, vm_scale_set_name="str", platform_update_domain=0, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -791,7 +813,7 @@ def test_virtual_machine_scale_sets_convert_to_single_placement_group(self, reso resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"activePlacementGroupId": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -804,7 +826,7 @@ def test_virtual_machine_scale_sets_begin_set_orchestration_service_state(self, resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"action": "str", "serviceName": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py index e53e2f600af6..3dba0dcf6a01 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_scale_sets_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_machine_scale_sets_list_by_location(self, resource_group): response = self.client.virtual_machine_scale_sets.list_by_location( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -62,10 +62,15 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "provisioningState": "str", "proximityPlacementGroup": {"id": "str"}, "resiliencyPolicy": { + "automaticZoneRebalancingPolicy": { + "enabled": bool, + "rebalanceBehavior": "str", + "rebalanceStrategy": "str", + }, "resilientVMCreationPolicy": {"enabled": bool}, "resilientVMDeletionPolicy": {"enabled": bool}, }, - "scaleInPolicy": {"forceDeletion": bool, "rules": ["str"]}, + "scaleInPolicy": {"forceDeletion": bool, "prioritizeUnhealthyVMs": bool, "rules": ["str"]}, "scheduledEventsPolicy": { "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": {"enable": bool}}, "userInitiatedReboot": {"automaticallyApprove": bool}, @@ -73,7 +78,7 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ }, "singlePlacementGroup": bool, "sku": {"capacity": 0, "name": "str", "tier": "str"}, - "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str"}]}, + "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str", "rank": 0}]}, "spotRestorePolicy": {"enabled": bool, "restoreTimeout": "str"}, "tags": {"str": "str"}, "timeCreated": "2020-02-20 00:00:00", @@ -243,7 +248,13 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -309,7 +320,7 @@ async def test_virtual_machine_scale_sets_begin_create_or_update(self, resource_ "zoneBalance": bool, "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -338,13 +349,18 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "priorityMixPolicy": {"baseRegularPriorityCount": 0, "regularPriorityPercentageAboveBase": 0}, "proximityPlacementGroup": {"id": "str"}, "resiliencyPolicy": { + "automaticZoneRebalancingPolicy": { + "enabled": bool, + "rebalanceBehavior": "str", + "rebalanceStrategy": "str", + }, "resilientVMCreationPolicy": {"enabled": bool}, "resilientVMDeletionPolicy": {"enabled": bool}, }, - "scaleInPolicy": {"forceDeletion": bool, "rules": ["str"]}, + "scaleInPolicy": {"forceDeletion": bool, "prioritizeUnhealthyVMs": bool, "rules": ["str"]}, "singlePlacementGroup": bool, "sku": {"capacity": 0, "name": "str", "tier": "str"}, - "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str"}]}, + "skuProfile": {"allocationStrategy": "str", "vmSizes": [{"name": "str", "rank": 0}]}, "spotRestorePolicy": {"enabled": bool, "restoreTimeout": "str"}, "tags": {"str": "str"}, "upgradePolicy": { @@ -488,7 +504,13 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, @@ -548,7 +570,7 @@ async def test_virtual_machine_scale_sets_begin_update(self, resource_group): "zonalPlatformFaultDomainAlignMode": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -562,7 +584,7 @@ async def test_virtual_machine_scale_sets_begin_delete(self, resource_group): await self.client.virtual_machine_scale_sets.begin_delete( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -575,7 +597,7 @@ async def test_virtual_machine_scale_sets_get(self, resource_group): response = await self.client.virtual_machine_scale_sets.get( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -588,7 +610,7 @@ async def test_virtual_machine_scale_sets_begin_deallocate(self, resource_group) await self.client.virtual_machine_scale_sets.begin_deallocate( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -603,7 +625,7 @@ async def test_virtual_machine_scale_sets_begin_delete_instances(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -616,7 +638,7 @@ async def test_virtual_machine_scale_sets_get_instance_view(self, resource_group response = await self.client.virtual_machine_scale_sets.get_instance_view( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -627,7 +649,7 @@ async def test_virtual_machine_scale_sets_get_instance_view(self, resource_group async def test_virtual_machine_scale_sets_list(self, resource_group): response = self.client.virtual_machine_scale_sets.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -637,7 +659,7 @@ async def test_virtual_machine_scale_sets_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_machine_scale_sets_list_all(self, resource_group): response = self.client.virtual_machine_scale_sets.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -649,7 +671,7 @@ async def test_virtual_machine_scale_sets_list_skus(self, resource_group): response = self.client.virtual_machine_scale_sets.list_skus( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -661,7 +683,7 @@ async def test_virtual_machine_scale_sets_get_os_upgrade_history(self, resource_ response = self.client.virtual_machine_scale_sets.get_os_upgrade_history( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -674,7 +696,7 @@ async def test_virtual_machine_scale_sets_begin_power_off(self, resource_group): await self.client.virtual_machine_scale_sets.begin_power_off( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -688,7 +710,7 @@ async def test_virtual_machine_scale_sets_begin_restart(self, resource_group): await self.client.virtual_machine_scale_sets.begin_restart( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -702,7 +724,7 @@ async def test_virtual_machine_scale_sets_begin_start(self, resource_group): await self.client.virtual_machine_scale_sets.begin_start( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -716,7 +738,7 @@ async def test_virtual_machine_scale_sets_begin_reapply(self, resource_group): await self.client.virtual_machine_scale_sets.begin_reapply( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -730,7 +752,7 @@ async def test_virtual_machine_scale_sets_begin_redeploy(self, resource_group): await self.client.virtual_machine_scale_sets.begin_redeploy( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -744,7 +766,7 @@ async def test_virtual_machine_scale_sets_begin_perform_maintenance(self, resour await self.client.virtual_machine_scale_sets.begin_perform_maintenance( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -759,7 +781,7 @@ async def test_virtual_machine_scale_sets_begin_update_instances(self, resource_ resource_group_name=resource_group.name, vm_scale_set_name="str", vm_instance_i_ds={"instanceIds": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -773,7 +795,7 @@ async def test_virtual_machine_scale_sets_begin_reimage(self, resource_group): await self.client.virtual_machine_scale_sets.begin_reimage( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -787,7 +809,7 @@ async def test_virtual_machine_scale_sets_begin_reimage_all(self, resource_group await self.client.virtual_machine_scale_sets.begin_reimage_all( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -801,7 +823,7 @@ async def test_virtual_machine_scale_sets_begin_approve_rolling_upgrade(self, re await self.client.virtual_machine_scale_sets.begin_approve_rolling_upgrade( resource_group_name=resource_group.name, vm_scale_set_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -818,7 +840,7 @@ async def test_virtual_machine_scale_sets_force_recovery_service_fabric_platform resource_group_name=resource_group.name, vm_scale_set_name="str", platform_update_domain=0, - api_version="2024-07-01", + api_version="2024-11-01", ) ) @@ -832,7 +854,7 @@ async def test_virtual_machine_scale_sets_convert_to_single_placement_group(self resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"activePlacementGroupId": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -846,7 +868,7 @@ async def test_virtual_machine_scale_sets_begin_set_orchestration_service_state( resource_group_name=resource_group.name, vm_scale_set_name="str", parameters={"action": "str", "serviceName": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py index 42a2133d751b..30802dc0c73a 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_machine_sizes_list(self, resource_group): response = self.client.virtual_machine_sizes.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py index 97d59b279eb2..e6bceb227f59 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machine_sizes_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_machine_sizes_list(self, resource_group): response = self.client.virtual_machine_sizes.list( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py index 1b441fba438e..39983f32d436 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_virtual_machines_list_by_location(self, resource_group): response = self.client.virtual_machines.list_by_location( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -36,7 +36,7 @@ def test_virtual_machines_begin_capture(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"destinationContainerName": "str", "overwriteVhds": bool, "vhdPrefix": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -344,6 +344,7 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "winRM": {"listeners": [{"certificateUrl": "str", "protocol": "str"}]}, }, }, + "placement": {"excludeZones": ["str"], "includeZones": ["str"], "zonePlacementPolicy": "str"}, "plan": {"name": "str", "product": "str", "promotionCode": "str", "publisher": "str"}, "platformFaultDomain": 0, "priority": "str", @@ -404,11 +405,18 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -479,7 +487,7 @@ def test_virtual_machines_begin_create_or_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -798,11 +806,18 @@ def test_virtual_machines_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -872,7 +887,7 @@ def test_virtual_machines_begin_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -884,7 +899,7 @@ def test_virtual_machines_begin_delete(self, resource_group): response = self.client.virtual_machines.begin_delete( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -896,7 +911,7 @@ def test_virtual_machines_get(self, resource_group): response = self.client.virtual_machines.get( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -908,7 +923,7 @@ def test_virtual_machines_instance_view(self, resource_group): response = self.client.virtual_machines.instance_view( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -920,7 +935,7 @@ def test_virtual_machines_begin_convert_to_managed_disks(self, resource_group): response = self.client.virtual_machines.begin_convert_to_managed_disks( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -932,7 +947,7 @@ def test_virtual_machines_begin_deallocate(self, resource_group): response = self.client.virtual_machines.begin_deallocate( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -944,7 +959,7 @@ def test_virtual_machines_generalize(self, resource_group): response = self.client.virtual_machines.generalize( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -955,7 +970,7 @@ def test_virtual_machines_generalize(self, resource_group): def test_virtual_machines_list(self, resource_group): response = self.client.virtual_machines.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -965,7 +980,7 @@ def test_virtual_machines_list(self, resource_group): @recorded_by_proxy def test_virtual_machines_list_all(self, resource_group): response = self.client.virtual_machines.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -977,7 +992,7 @@ def test_virtual_machines_list_available_sizes(self, resource_group): response = self.client.virtual_machines.list_available_sizes( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -989,7 +1004,7 @@ def test_virtual_machines_begin_power_off(self, resource_group): response = self.client.virtual_machines.begin_power_off( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1001,7 +1016,7 @@ def test_virtual_machines_begin_reapply(self, resource_group): response = self.client.virtual_machines.begin_reapply( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1013,7 +1028,7 @@ def test_virtual_machines_begin_restart(self, resource_group): response = self.client.virtual_machines.begin_restart( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1025,7 +1040,7 @@ def test_virtual_machines_begin_start(self, resource_group): response = self.client.virtual_machines.begin_start( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1037,7 +1052,7 @@ def test_virtual_machines_begin_redeploy(self, resource_group): response = self.client.virtual_machines.begin_redeploy( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1049,7 +1064,7 @@ def test_virtual_machines_begin_reimage(self, resource_group): response = self.client.virtual_machines.begin_reimage( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1061,7 +1076,7 @@ def test_virtual_machines_retrieve_boot_diagnostics_data(self, resource_group): response = self.client.virtual_machines.retrieve_boot_diagnostics_data( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -1073,7 +1088,7 @@ def test_virtual_machines_begin_perform_maintenance(self, resource_group): response = self.client.virtual_machines.begin_perform_maintenance( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1085,7 +1100,7 @@ def test_virtual_machines_simulate_eviction(self, resource_group): response = self.client.virtual_machines.simulate_eviction( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -1097,7 +1112,7 @@ def test_virtual_machines_begin_assess_patches(self, resource_group): response = self.client.virtual_machines.begin_assess_patches( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1126,7 +1141,7 @@ def test_virtual_machines_begin_install_patches(self, resource_group): "maxPatchPublishDate": "2020-02-20 00:00:00", }, }, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1151,7 +1166,19 @@ def test_virtual_machines_begin_attach_detach_data_disks(self, resource_group): ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_group): + response = self.client.virtual_machines.begin_migrate_to_vm_scale_set( + resource_group_name=resource_group.name, + vm_name="str", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -1164,7 +1191,7 @@ def test_virtual_machines_begin_run_command(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py index 13d189b0b1bb..702fca5ceab9 100644 --- a/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py +++ b/sdk/compute/azure-mgmt-compute/generated_tests/test_compute_management_virtual_machines_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_virtual_machines_list_by_location(self, resource_group): response = self.client.virtual_machines.list_by_location( location="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_virtual_machines_begin_capture(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"destinationContainerName": "str", "overwriteVhds": bool, "vhdPrefix": "str"}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -348,6 +348,7 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "winRM": {"listeners": [{"certificateUrl": "str", "protocol": "str"}]}, }, }, + "placement": {"excludeZones": ["str"], "includeZones": ["str"], "zonePlacementPolicy": "str"}, "plan": {"name": "str", "product": "str", "promotionCode": "str", "publisher": "str"}, "platformFaultDomain": 0, "priority": "str", @@ -408,11 +409,18 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -486,7 +494,7 @@ async def test_virtual_machines_begin_create_or_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -807,11 +815,18 @@ async def test_virtual_machines_begin_update(self, resource_group): "securityProfile": { "encryptionAtHost": bool, "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": {"enabled": bool, "keyIncarnationId": 0, "mode": "str"}, + "proxyAgentSettings": { + "enabled": bool, + "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + "keyIncarnationId": 0, + "mode": "str", + "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, + }, "securityType": "str", "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, }, "storageProfile": { + "alignRegionalDisksToVMZone": bool, "dataDisks": [ { "createOption": "str", @@ -884,7 +899,7 @@ async def test_virtual_machines_begin_update(self, resource_group): "vmId": "str", "zones": ["str"], }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -898,7 +913,7 @@ async def test_virtual_machines_begin_delete(self, resource_group): await self.client.virtual_machines.begin_delete( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -911,7 +926,7 @@ async def test_virtual_machines_get(self, resource_group): response = await self.client.virtual_machines.get( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -923,7 +938,7 @@ async def test_virtual_machines_instance_view(self, resource_group): response = await self.client.virtual_machines.instance_view( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -936,7 +951,7 @@ async def test_virtual_machines_begin_convert_to_managed_disks(self, resource_gr await self.client.virtual_machines.begin_convert_to_managed_disks( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -950,7 +965,7 @@ async def test_virtual_machines_begin_deallocate(self, resource_group): await self.client.virtual_machines.begin_deallocate( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -963,7 +978,7 @@ async def test_virtual_machines_generalize(self, resource_group): response = await self.client.virtual_machines.generalize( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -974,7 +989,7 @@ async def test_virtual_machines_generalize(self, resource_group): async def test_virtual_machines_list(self, resource_group): response = self.client.virtual_machines.list( resource_group_name=resource_group.name, - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -984,7 +999,7 @@ async def test_virtual_machines_list(self, resource_group): @recorded_by_proxy_async async def test_virtual_machines_list_all(self, resource_group): response = self.client.virtual_machines.list_all( - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -996,7 +1011,7 @@ async def test_virtual_machines_list_available_sizes(self, resource_group): response = self.client.virtual_machines.list_available_sizes( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -1009,7 +1024,7 @@ async def test_virtual_machines_begin_power_off(self, resource_group): await self.client.virtual_machines.begin_power_off( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1023,7 +1038,7 @@ async def test_virtual_machines_begin_reapply(self, resource_group): await self.client.virtual_machines.begin_reapply( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1037,7 +1052,7 @@ async def test_virtual_machines_begin_restart(self, resource_group): await self.client.virtual_machines.begin_restart( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1051,7 +1066,7 @@ async def test_virtual_machines_begin_start(self, resource_group): await self.client.virtual_machines.begin_start( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1065,7 +1080,7 @@ async def test_virtual_machines_begin_redeploy(self, resource_group): await self.client.virtual_machines.begin_redeploy( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1079,7 +1094,7 @@ async def test_virtual_machines_begin_reimage(self, resource_group): await self.client.virtual_machines.begin_reimage( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1092,7 +1107,7 @@ async def test_virtual_machines_retrieve_boot_diagnostics_data(self, resource_gr response = await self.client.virtual_machines.retrieve_boot_diagnostics_data( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -1105,7 +1120,7 @@ async def test_virtual_machines_begin_perform_maintenance(self, resource_group): await self.client.virtual_machines.begin_perform_maintenance( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1118,7 +1133,7 @@ async def test_virtual_machines_simulate_eviction(self, resource_group): response = await self.client.virtual_machines.simulate_eviction( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) # please add some check logic here by yourself @@ -1131,7 +1146,7 @@ async def test_virtual_machines_begin_assess_patches(self, resource_group): await self.client.virtual_machines.begin_assess_patches( resource_group_name=resource_group.name, vm_name="str", - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1162,7 +1177,7 @@ async def test_virtual_machines_begin_install_patches(self, resource_group): "maxPatchPublishDate": "2020-02-20 00:00:00", }, }, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1189,7 +1204,21 @@ async def test_virtual_machines_begin_attach_detach_data_disks(self, resource_gr ], "dataDisksToDetach": [{"diskId": "str", "detachOption": "str"}], }, - api_version="2024-07-01", + api_version="2024-11-01", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_virtual_machines_begin_migrate_to_vm_scale_set(self, resource_group): + response = await ( + await self.client.virtual_machines.begin_migrate_to_vm_scale_set( + resource_group_name=resource_group.name, + vm_name="str", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result @@ -1204,7 +1233,7 @@ async def test_virtual_machines_begin_run_command(self, resource_group): resource_group_name=resource_group.name, vm_name="str", parameters={"commandId": "str", "parameters": [{"name": "str", "value": "str"}], "script": ["str"]}, - api_version="2024-07-01", + api_version="2024-11-01", ) ).result() # call '.result()' to poll until service return final result